I am trying to find a way to delete backups being taken by Ola's native SQL backups. I am trying to keep only 14 days of transaction logs, 1 month of diffs, and 12 months of full weekend backups. Is there a way to do it in Ola's scripts?
SQL Server – Custom Backup Deletion with Ola Scripts
ola-hallengrensql server
Related Question
- SQL Server 2014 – Restore Database Wizard Loading Old Backup Set
- SQL Server Backup – Deleting Transaction Log Backups with Ola Hallengren
- SQL Server – Understanding CleanupTime in Ola Hallengren’s Scripts for Backups
- Sql-server – Custom Deletion for Ola Hallengren Scripts
- Ola scripts = log shipping and transaction logs
- Sql-server – the behavior of SQL Server Maintenance Plan – Clean Up task for deleting old backups
- Ola Hallengren – SQL Server Backup CleanupTime Configuration
Best Answer
You can use the CleanupTime parameter for each backup job (log, diff, full)
So for example:
Example A from Ola