Add a cronjob example to remove old files

This commit is contained in:
Sam Whited 2015-07-26 09:31:20 -05:00
parent 6d8993145b
commit 24b6a11970
1 changed files with 5 additions and 0 deletions

5
contrib/crontab.example Normal file
View 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