I am trying to find a way to delete backups being taken by Ola's native SQL backups.
I need to keep only 2 weeks of transaction logs, 5 weeks of differentials, 14 weeks of full backups, 13 monthly full backups, and 3 beginning-of-the-year full backups.
I already asked the question and can do the first three with changing the @CleanupTime
parameter in each of the respective jobs, however I don't know how to stop the Ola scripts from deleting the monthly or beginning-of-the-year backups.
*.bak
files longer than other*.bak
files based on some criteria other than a default cleanup time. Try and open a pull request on the repository's Github page: olahallengren / sql-server-maintenance-solution