Skip to content

Commit

Permalink
Search for all file names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWinder committed Jan 3, 2023
1 parent e1d5cba commit 470171c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 470171c

Please sign in to comment.