Skip to content

Commit 1ca5515

Browse files
committed
Fix time for deletion
1 parent 00cf0f8 commit 1ca5515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backup-advanced.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ tar cjf ${dir_for_backups}/${site_folder}_files_$(date +%Y-%m-%d_%H-%M-%S).tbz -
3232
echo "Backup OK! Now removing old bakups if proceed"
3333

3434
#4º Remove old backups
35-
find $dir_for_backups -name '*.sql.gz' -o -name '*.tbz' -type f -mtime +${time_for_deletion} -delete
35+
find ${dir_for_backups}/${site_folder}_* -mtime +${time_for_deletion} -exec rm {} \;
3636

3737
echo "All operationes DONE"

0 commit comments

Comments
 (0)