Add hourly cron task to delete old leaked Send files

This commit is contained in:
timvisee
2020-09-17 23:50:20 +02:00
parent 167bf75f45
commit cd595f018c

7
gc.cron Normal file
View File

@@ -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 {} \;