mirror of
https://github.com/moparisthebest/HttpUploadComponent
synced 2024-12-21 23:18:55 -05:00
Merge pull request #20 from SamWhited/crontab
Add a cronjob example to remove old files
This commit is contained in:
commit
50e1afa2ba
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