From 117f7c5f2d4ca510886f638b4d8d11e0d4d5baae Mon Sep 17 00:00:00 2001 From: TechHome Date: Thu, 28 May 2020 15:34:05 +0200 Subject: [PATCH] Create crontab-daily-removebackups --- crontab-daily-removebackups | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 crontab-daily-removebackups diff --git a/crontab-daily-removebackups b/crontab-daily-removebackups new file mode 100644 index 0000000..de11a30 --- /dev/null +++ b/crontab-daily-removebackups @@ -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