jebusfreek666 Posted April 26, 2021 Share Posted April 26, 2021 Is there anyway to setup an automated process to delete files older than a set number of days from one specific share? My use case would be the following: Have 24/7 CCTV footage written to separate cache pool Have mover transfer files to the array once a day to save on continuous writing Keep footage archived for 30 days, then deleted automatically This way, I would always have a month worth of footage I could go back to at anytime. Is this possible? I feel like this is probably a user script kind of thing, but I have little to know knowledge of how to use scripts let alone write them. Thanks Quote Link to comment
Flemming Posted September 10, 2021 Share Posted September 10, 2021 Bumping this because I have the exact same usecase. Did you find anything @jebusfreek666? Quote Link to comment
jebusfreek666 Posted September 22, 2021 Author Share Posted September 22, 2021 On 9/10/2021 at 1:50 AM, Flemming said: Bumping this because I have the exact same usecase. Did you find anything @jebusfreek666? Not really. I am pretty sure this can be handled with a user script, though I am not an expert by any means. In my case, I am starting to think I will just use dedicated unassigned disks or possibly a cache pool instead. Depending on the number of cameras I end up with and the quality of the video, this could be a rather large amount of data. And expecting mover to handle that much every day might be asking a bit much. Quote Link to comment
Turnspit Posted September 22, 2021 Share Posted September 22, 2021 Maybe have a look at this solution? https://askubuntu.com/questions/789602/auto-delete-files-older-than-7-days Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.