|
|
@@ -151,7 +151,7 @@ function create_backup()
|
|
|
"/etc/config/shadowsocksr",
|
|
|
"/etc/ssrplus/*"
|
|
|
}
|
|
|
- local date = os.date("%Y%m%d")
|
|
|
+ local date = os.date("%Y-%m-%d-%H-%M-%S")
|
|
|
local tar_file = "/tmp/shadowsocksr-" .. date .. "-backup.tar.gz"
|
|
|
nixio.fs.remove(tar_file)
|
|
|
local cmd = "tar -czf " .. tar_file .. " " .. table.concat(backup_files, " ")
|