增量式备份
This commit is contained in:
parent
70e8096575
commit
6989867428
@ -48,7 +48,7 @@ while IFS= read -r -d '' file; do
|
|||||||
if (( (current_time - file_date) > 86400 )); then
|
if (( (current_time - file_date) > 86400 )); then
|
||||||
backup_files+=("$file")
|
backup_files+=("$file")
|
||||||
fi
|
fi
|
||||||
done < <(find "$BACKUP_DIR" -name "$DB_NAME-*.sql.gz" -type f -print0)
|
done < <(find "$BACKUP_DIR" -name ${backUpPath}/${dbName}-incremental-*.sql.gz" -type f -print0)
|
||||||
|
|
||||||
# 遍历数组,打印每个文件名
|
# 遍历数组,打印每个文件名
|
||||||
for file in "${backup_files[@]}"; do
|
for file in "${backup_files[@]}"; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user