Skip to content

Commit

Permalink
fix backup db file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiagw committed Aug 17, 2024
1 parent f59c29a commit 54b994f
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 54b994f

Please sign in to comment.