Skip to content

Commit

Permalink
Merge pull request #2249 from xiagw/fix-backup-dbfile
Browse files Browse the repository at this point in the history
fix backup db file
  • Loading branch information
star7th authored Aug 19, 2024
2 parents f59c29a + 54b994f commit 898d802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 898d802

Please sign in to comment.