fix find command to delete old backup

This commit is contained in:
Ludovic Cartier
2026-05-29 13:26:32 +02:00
parent 0df97444c7
commit 6239acb6b9
+1 -1
View File
@@ -238,7 +238,7 @@ mkdir -p "$backup_dir/$today/sshportal"
{% endif %}
# purge old backups
find $backup_dir -type d -ctime +$backup_local_retention -exec rm -rf {} \;
find $backup_dir -maxdepth 1 -mindepth 1 -type d -mtime +$backup_local_retention -exec rm -rf {} \;
## send to PBS ##
/usr/bin/proxmox-backup-client backup \