I have a couple of IP cameras pointed at my WD Mirror Gen2 to record images (using FTP) when they detect motion. It works great…but…
I need a way to delete image files after some interval (about 30 days). I can use the ssh login to setup a find command that deletes the files, but I need to run this command from a cron job daily to delete files older than x days.
The part that has me stumped is making any cron job “persistent”. Any changes to crontab seem to disappear on reboot.
So…what can I do to make a “persistent” cron job? Is there a better way to approach this problem?