Browse Source

luci-app-ssr-plus: Update backup time format.

zxl hhyccc 9 months ago
parent
commit
feeb2907b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      luci-app-ssr-plus/luasrc/controller/shadowsocksr.lua

+ 1 - 1
luci-app-ssr-plus/luasrc/controller/shadowsocksr.lua

@@ -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, " ")