SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Backup of standby database


Backup of standby database

Author
Message
chuck.hamilton
chuck.hamilton
SSC-Enthusiastic
SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)

Group: General Forum Members
Points: 156 Visits: 395
I know this is an old topic but I thought I'd update it anyway. I did find a way to backup standby databases using the "backup" command. It works in SQL 2008 R2 and should work in any version that supports standby. I found it here.

The one requirement is that the source DB that you're backing up must be in standby read-only mode.

Basically you create a dummy database with the same # and types of files as the DB to be backed up, offline both databases, copy the files from the source DB over top of the dummy DB, and then online both databases. Your dummy DB is now a copy of the source DB at the point in time when it was offlined. Backup the dummy DB and you have a backup of the source DB.

I would suggest also backing up the *.tuf file associated with the source DB. You'll need it if you ever plan to do a restore and roll forward the transaction log backups.

When I do this, I leave the LSCopy job enabled but disable the LSRestore job so it doesn't screw anything up.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search