Hi!
Yesterday I've hooked up all my servers with GOTV and made it so all the demos get automatically uploaded to my domain. I'm now wondering if it's possible to make a crontab that automatically deletes all demos older then x amount of days to save bandwidth. The domain is http://files.hosted.nfoservers.com/demos.
Much appreciated!
Jasper
Crontab Help
- Ownkruid
- New to forums
- Posts: 6
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Oct 29, 2015 1:13 am
Re: Crontab Help
Give the following a try:
This would remove files older than 7 days from the public/demos folder.
Code: Select all
0 0 * * * find ~/public/demos -mtime +7 -exec rm {} \;