Fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# crontab -e
|
# crontab -e
|
||||||
|
|
||||||
# Checks daily whether a file in the folder "/mnt/pve/freenas/dump" contains the name vzdump and deletes the file if it's older than 14 days
|
# Checks daily whether a file in the folder "/mnt/pve/freenas/dump" contains the name vzdump and deletes the file if it's older than 14 days
|
||||||
@daily find /mnt/pve/freenas/dump -name 'vzdump*' -mtime +14 -type f -delete
|
@daily find /mnt/pve/freenas/dump/ -mindepth 1 -name 'vzdump*' -type f -mtime +14 -execdir rm -- '{}' \;
|
||||||
|
|||||||
Reference in New Issue
Block a user