fix find command to delete old backup
This commit is contained in:
1 parent
0df97444c7
commit
6239acb6b9
1 file changed
+1
-1
@@ -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