Merge pull request #20 from SamWhited/crontab

Add a cronjob example to remove old files
This commit is contained in:
Daniel Gultsch 2015-07-27 13:17:27 +02:00
commit 50e1afa2ba
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