pgaertig / nginx-big-upload

Resumable and reliable file uploads of any size. Nginx extension written in Lua.
https://github.com/pgaertig/nginx-big-upload
Other
192 stars 49 forks source link

sample clean-up cron job #10

Closed stepin closed 10 years ago

stepin commented 10 years ago

To clean files from sha1 and error cases.

pgaertig commented 10 years ago

This will clean the files which wasn't modified for over one day. Occurs every hour.

9 * * * * /usr/bin/find /your/temp/files/dir/ -mtime +1 -type f -exec rm -f {} \;