Create crontab-daily-removebackups

This commit is contained in:
TechHome
2020-05-28 15:34:05 +02:00
committed by GitHub
parent 76e4db91f1
commit 117f7c5f2d
+4
View File
@@ -0,0 +1,4 @@
# 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
@daily find /mnt/pve/freenas/dump -name 'vzdump*' -mtime +14 -type f -delete