From 6b05afd1108a5018200408801721668879d3e6e0 Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Sun, 16 Jul 2023 01:07:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E9=87=8F=E5=BC=8F=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 32342c7..a694e38 100755 --- a/backup.sh +++ b/backup.sh @@ -31,7 +31,7 @@ cd ${backUpPath} # 遍历60个小时前的备份文件,并将文件名存入数组 while IFS= read -r -d '' file; do old_backup_files+=("$file") -done < <(find ${backUpPath} -name "${dbName}_backUp_*.tar.gz" -type f -mmin +3600 -print0) +done < <(find ${backUpPath} -name "${dbName}_backUp_*.tar.gz" -type f -mmin +1440 -print0) # 遍历数组,删除备份文件 for file in "${old_backup_files[@]}"; do