From cd595f018cdb26aedd0c9d548d6d70805473a76e Mon Sep 17 00:00:00 2001 From: timvisee Date: Thu, 17 Sep 2020 23:50:20 +0200 Subject: [PATCH] Add hourly cron task to delete old leaked Send files --- gc.cron | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 gc.cron diff --git a/gc.cron b/gc.cron new file mode 100644 index 0000000..f043177 --- /dev/null +++ b/gc.cron @@ -0,0 +1,7 @@ +# Set this up as hourly cronjob to delete old files, that Send forgot to remove +# itself. +# +# Run `crontab -e` and add the line below, and configure the correct path. + +# Delete leaked Send upload files older than 1 day (and a bit) every hour +0 * * * * find /mnt/send01_volume/uploads/ -mmin +1450 -exec rm {} \;