|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, May 03, 2011 2:56 AM
Points: 69,
Visits: 92
|
|
Hi. We have several databases in full recovery model. Daily we make full backups, but sometimes we need take a full backup for development purposes. I would like guarantee that everyone "remember" check copy_only option. Can I create a policy, or a DDL trigger that avoid this mistake? Thanks in advance, Fran
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 1:43 AM
Points: 37,690,
Visits: 29,948
|
|
Are you doing diff backups? If not, it's not so critical to use the copy_only option
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, May 03, 2011 2:56 AM
Points: 69,
Visits: 92
|
|
Since I 'm not doing differentials backups, hasn't this option any effect? Thank you!
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 1:43 AM
Points: 37,690,
Visits: 29,948
|
|
Correct. No full backup (with or without copy_only) breaks the log chain.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, April 10, 2013 10:10 PM
Points: 307,
Visits: 1,390
|
|
GilaMonster (10/22/2010) Correct. No full backup (with or without copy_only) breaks the log chain.
Gail, I am confused here.
For example, from FULL BAKCUP A to FULL BACKUP B, we have a log chain. If you issue a FULL backup C without COPY_ONLY between A and B, then, you break the previous log chain A to B.
Right?
According to Microsoft, you should backup log after the Full backup C to establish a new log chain.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 2:28 AM
Points: 343,
Visits: 1,510
|
|
For example, from FULL BAKCUP A to FULL BACKUP B, we have a log chain. If you issue a FULL backup C without COPY_ONLY between A and B, then, you break the previous log chain A to B.
Right? No. You can make as many full backups as you want between full backup A and B, and you will not break the log chain.
According to Microsoft, you should backup log after the Full backup C to establish a new log chain. Could you please provide the URL to the article? I would like to see the context the recommendation was made in.
Thanks.
Ray Mond
TLogInfo - the only FREE tool to analyse your transaction logs. Download here. SQL BAK Reader - the only FREE tool to inspect your SQL Server backup files without using SQL Server. Download here.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 2:32 AM
Points: 2,236,
Visits: 3,620
|
|
Full Backups do not break transaction log chain. However they do reset differential backups. If you take full backup wth copy_only option, the differential backup will contain pages that were modified after the last full backup without copy_only option.
Pradeep Singh
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 2:32 AM
Points: 2,236,
Visits: 3,620
|
|
If you have truncated the log, you will need to take a full OR diff backup to start a new log chain. another case, if ur db has never been backed up(full recovery) then until you take full backup a new log chain wont start. db behaves as if it were in simple recovery mode.
Pradeep Singh
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 1:43 AM
Points: 37,690,
Visits: 29,948
|
|
Wildcat (10/22/2010) If you issue a FULL backup C without COPY_ONLY between A and B, then, you break the previous log chain A to B.
Right?
Wrong. Full backups do not and never have broken the log chain.
It's trivial to test and, if you want, I can find a blog post from the former program manager of the Storage Engine stating and proving this.
The only things that break the log chain are: * Switch to simple recovery * Backup log with nolog/truncate only * Deleting a log backup (won't stop you taking log backups, will stop you recovering with them)
According to Microsoft, you should backup log after the Full backup C to establish a new log chain. Link please. I need to write a scathing email to either the author or the MS documentation people if such an official recommendation exists
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, April 10, 2013 10:10 PM
Points: 307,
Visits: 1,390
|
|
[quote The only things that break the log chain are: * Switch to simple recovery * Backup log with nolog/truncate only * Deleting a log backup (won't stop you taking log backups, will stop you recovering with them)
[/quote]
Sorry, after reading Microsoft document 3 times, I misunderstood the concept. 
Thanks, Gail.
|
|
|
|