Blog Post

Can you take a differential backup of master?

,

In one of the sessions I attended during the Pass Data Community Summit the speaker asked “If master is in the simple recovery model can I take a differential backup of it?” And I of course thought “Yes, of course you can.” Turns out I was wrong.

BACKUP DATABASE master TO DISK = 'NUL' WITH DIFFERENTIAL;

Ignore the fact that I took the backup to NUL. That was just me being lazy for the demo. You can try it to a different location if you want, it won’t matter. It turns out, it also doesn’t matter what recovery model master is in. You’ll get the same error. As I understand it master was explicitly excluded in the code for differential backups. Go figure.

In case you are interested model and msdb act normally when it comes to backups and tempdb doesn’t allow any backups.

Original post (opens in new tab)
View comments in original post (opens in new tab)

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating