mirror of
https://github.com/timvisee/send-docker-compose.git
synced 2025-12-07 14:30:58 +03:00
Add hourly cron task to delete old leaked Send files
This commit is contained in:
7
gc.cron
Normal file
7
gc.cron
Normal 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 {} \;
|
||||||
Reference in New Issue
Block a user