From 54b994ffb09e79b975ec01e715e615112842df81 Mon Sep 17 00:00:00 2001 From: xiagw Date: Sat, 17 Aug 2024 22:53:03 +0800 Subject: [PATCH] fix backup db file --- docker.run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker.run.sh b/docker.run.sh index e284cb479..1bc428aa6 100644 --- a/docker.run.sh +++ b/docker.run.sh @@ -58,7 +58,7 @@ _backup_dbfile() { else backup_time="$(date +%F-%H-%M-%S)" fi - \cp $db_file backup.full.${db_file}."$backup_time".php + \cp $db_file ${db_file}.backup.full."$backup_time".php ## remove old files (15 days ago) find ${db_file}.* -type f -ctime +15 -print0 | xargs -t -0 rm -f >/dev/null