patternsqlMinor
Transaction Log Backup Maintenance Plan and Newly Restored Databases
Viewed 0 times
databaseslognewlyplanmaintenancetransactionandrestoredbackup
Problem
When we add a new database (restore from a staging instance) to our live instance we have a job which sets it to Full recovery (in case the tech forgot that) and then a maintenance plan that runs a Full backup each night. We also have a maintenance plan that runs a transaction log backup every 30 minutes. How do I stop the latter failing whilst we are waiting for the first Full backup to complete? I’m thinking I maybe cannot achieve this with maintenance plans but need a bespoke agent job?
Solution
Check out Ola Hallengren's maintenance scripts. They have a
@ChangeBackupType parameter that lets you automatically escalate to fulls if necessary.Context
StackExchange Database Administrators Q#185309, answer score: 3
Revisions (0)
No revisions yet.