mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 11:55:13 +08:00
🤞 Sync 2026-10-04 14:55:43
This commit is contained in:
1 parent
d0a3b136c4
commit
d132e566f2
5 files changed
+34
-23
No files matched your search
@@ -949,7 +949,7 @@ function create_backup()
|
||||
local date = os.date("%y%m%d%H%M")
|
||||
local tar_file = "/tmp/passwall-" .. date .. "-backup.tar.gz"
|
||||
local version_file = "/tmp/passwall-version"
|
||||
local version = api.get_version()
|
||||
local version = api.get_version():match("^([^-]+)")
|
||||
api.remove(tar_file)
|
||||
fs.writefile(version_file, version .. "\n")
|
||||
local cmd = "tar -czf " .. tar_file .. " " .. table.concat(backup_files, " ") .. " " .. "-C /tmp passwall-version"
|
||||
|
||||
Reference in new issue
Block a user