Hi, I have an app that make a huge backup file nightly. (It takes a couple of hours to make that file.) I want to always keep 5 backups, but delete the oldest files if/when there are more than 5 files in this folder.
If we tell Hazel to delete files older than a certain date that could delete all the backups in the case of new backups not being generated; which would be bad.
So we need to delete only the files that are not the 5 more recent backups in this folder. What is a good strategy to accomplish this?
For extra credit: How could we keep 5 daily files and also keep 1 file per week so we have 5 more weekly files, while deleting the oldest excess backups? (sort of like TimeMachine).
THANKS!
DN