We have a security camera in our office that saves video files in a NAS Server. These video files are occupying a lot of storage. I am looking a way to delete these files automatically which are older than x number of days.
How to Automatically delete files from NAS Server
network-attached-storage
Best Answer
Something like this? This command can be cronned: https://stackoverflow.com/a/14731180/696680
Be carefull that you still need to find *.avi (or whatever your extension is) files AND that you will need to do a "cd [path]" first!