I’m a novice but would like a linux box reorganize images on a nas for the last three months putting each month into a folder and anything thats older to be removed. I have been looking for software and coding like rsync but it seems a little beyond me at this moment in time. Can anybody help?
do the images have names which have a name pattern like a date? it’s a challenge for me and I will help you if you give me more details to write a script. Copy and paste a list of the files(a partial one would be fine -like 10 or so) and then tell me if you want the direcories to be created for the last 3 months, including the current month. Let me know.
I don’t have a lot of time to give specifics at the moment, but look at the ‘find’ command for locating files in a given directory of particular type and date; then have a look at ‘cron’ to set things up so your command(s) run automatically according to whatever schedule you need.
Be aware of scheduling problems; if someone is accessing a file while your script tries to delete it, someone isn’t going to be happy. If this is a rare enough occurrence, it can be ignored, but it’s at least worth thinking about.