I store thousands of images (jpg) with an Axis webcam to the WD My Cloud. After a couple of weeks there are 100.000 files on the storage and I need to delete all images older than 7 days automatically.
Should be able to do this via SSH, crontab and a clever shell script, but I need a detailed HOW TO, step-by-step on how to configure this scenario. Can you help pls.?
I think you will have better luck on a Linux forum… But honestly, there are too many solutions out there on the internel already for your questions. My recommendation: do baby steps…
You can also accomplish the same using windows task scheduler if you mount the share. Look into the robocopy command.
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=robocopy+delete+files+older+than
If you have a mac you can use automator to easily schedule a simple applescript to do this for you, similar to a cron job but maintaining cron jobs on mycloud is not consistent (often are removed on reboot and hacking it to keep them persist voids warranty)