mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-11-17 14:44:59 -05:00
Add a cronjob example to remove old files
This commit is contained in:
parent
6d8993145b
commit
24b6a11970
5
contrib/crontab.example
Normal file
5
contrib/crontab.example
Normal file
@ -0,0 +1,5 @@
|
||||
# Every day at 03:00 remove all files older than 30 days. See the man find note
|
||||
# on -atime for rounding error information. If you'd rather only remove files
|
||||
# that haven't been accessed for 30 days (and you don't have your drive mounted
|
||||
# with the noatime option), use -atime instead.
|
||||
0 3 * * * * find /var/www/blobstorage -ctime +30 -type f -exec rm -f \{\} \; >/dev/null 2>&1
|
Loading…
Reference in New Issue
Block a user