You've already forked proxmox-backup
fix find command to delete old backup
This commit is contained in:
@@ -238,7 +238,7 @@ mkdir -p "$backup_dir/$today/sshportal"
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# purge old backups
|
# 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 ##
|
## send to PBS ##
|
||||||
/usr/bin/proxmox-backup-client backup \
|
/usr/bin/proxmox-backup-client backup \
|
||||||
|
|||||||
Reference in New Issue
Block a user