We are facing what I'm certain is an incredibly common problem: we do daily backups that result in compressed archive files that have the date in the file name, and we don't want to keep all of them forever.
Some requirements that I don't think are too outlandish:
- delete all but the last X backups/days
- keep the Sunday backups
- keep the each months last backup
- alert someone if the newest backup is size 0/more than 50% bigger/smaller than the last one
I have tried to google, but only found a thousand scripts, many of them with glaring issues and bugs. Are there no 'proper' solutions to this problem that are well tested and have a community ? Am I doomed to copy and paste a script from SO or SU that will not be maintained or get bugfixes and will some day probably eat all our backups ?