This is for my media server:
I have a folder containing all of my TV Shows, and for some shows, I keep then indefinitely, while others I'd like to clean out the media files as they hit a 90 day age.
So I'd like to populate a list of the shows, by their path, that I want to be purged after 90 days in a TXT file and a scheduled script that will run thru that list daily.
This way I can add or remove shows from the TXT list, and then know that anything on that list I have 90 days to watch before those show's episodes are deleted.
Of course, I'd like to clear the video files and not others, like the season folders, artwork etc. So the typical list of extensions - mkv, mp4, mpg, mpeg, avi, xvid, ts will go, but not the folder structure.
I've found plenty of how-to's for purging files older than X days, but not something this specific.
When I had my media files on a Windows PC, I ran a simple program called autodelete where you specified the folders and the days and the extensions and it took care of things, but since the move to Ubuntu, I haven't found the same.
Any help appreciated.