From 470171c8834ed1f297570a2e92801af80571317b Mon Sep 17 00:00:00 2001 From: Alex Winder Date: Tue, 3 Jan 2023 21:35:15 +0000 Subject: [PATCH] Search for all file names --- html-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-backup.sh b/html-backup.sh index 3ef7da3..bd5fc35 100755 --- a/html-backup.sh +++ b/html-backup.sh @@ -102,6 +102,6 @@ sha256sum ${to}${website}/${backup_name}.tar.gz > ${to}${website}/${backup_name} rm -rf ${tmp}${backup_name}/ # Set a value to be used to find all backups with the same name -find_backup_name="${to}${website}/${website}_htmlbackup*.tar.gz" +find_backup_name="${to}${website}/${website}_htmlbackup*.tar.gz*" # Delete files which are older than the number of days defined find $find_backup_name -mtime +$days -type f -delete \ No newline at end of file