增量式备份
This commit is contained in:
parent
6adab45ce3
commit
82e5dd55f5
@ -43,7 +43,7 @@ echo "$CURRENT_BINLOG $CURRENT_POSITION" > "last_backup.txt"
|
||||
|
||||
backup_files=()
|
||||
|
||||
find "$BACKUP_DIR" -name "$DB_NAME-*.sql.gz" -type f -print0 | while IFS= read -r -d '' file; do
|
||||
find "$backUpPath" -name "${backUpPath}/${dbName}-incremental-*.sql.gz" -type f -print0 | while IFS= read -r -d '' file; do
|
||||
file_date=$(stat -c %Y "$file")
|
||||
current_time=$(date +%s)
|
||||
if (( (current_time - file_date) > 86400 )); then
|
||||
|
Loading…
x
Reference in New Issue
Block a user