June 8, 2015 at 6:36 am
If i have a FULL backup on Sunday evening @ 8:00 PM and succeeding a Differential backup @ 7:00 AM everyday(MON,TUE,WED,THU,FRI) with this LOG Backup for every 4 hours each day and my database(EX: TESTDB) had crashed at 6:00 PM on Friday what is the Restore sequence
Ans : First a Full backup with no recovery,
step 2 : All the Differential backups since last full backup with no recovery,
step 3: All the log backups since last full backup with recovery, STOPAT <time or LSN number>
Can anyone say this sequence is this correct or not?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Save a tree... Please don't waste paper unless you really need to!
When life puts into problem don't say 'God Why Me' say:w00t: 'Try Me'
June 8, 2015 at 6:53 am
log backups are cumulative, and are not affected by differential, so you cannot go from full + diffs + one last log. it's an either log-or-differential process.
full backup, plus any log backups up to the stop at timestamp; no differentials required; you should try to take a tail log backup , and see if you can do a point in time restore from that to get the best coverage.
Lowell
June 8, 2015 at 7:00 am
Thank You
I get your point : 1 FULL Backup + Most Recent Diff Backup + All Cumulative log backups since Last full backup is this correct.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Save a tree... Please don't waste paper unless you really need to!
When life puts into problem don't say 'God Why Me' say:w00t: 'Try Me'
June 8, 2015 at 7:14 am
info.sqldbamail (6/8/2015)
Thank YouI get your point : 1 FULL Backup + Most Recent Diff Backup + All Cumulative log backups since Last full backup is this correct.
No, that's not right.
To do a point in time restore, its
FULL Backup + ALL Log Backups, and you decide on a point in time.
Ideally, it's Take a log backup right now, and then
FULL Backup + ALL Log Backups + That Last Backup to be sure you have the point in time.
Lowell
June 8, 2015 at 8:35 am
Lowell (6/8/2015)
log backups are cumulative, and are not affected by differential, so you cannot go from full + diffs + one last log. it's an either log-or-differential process.
Errr...?????
Log backups aren't cumulative, they form a sequence, and you can definitely restore full + diff + logs since the diff, that's half the point of a differential, to reduce the number of logs that would need to be restored.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 8, 2015 at 8:37 am
info.sqldbamail (6/8/2015)
I get your point : 1 FULL Backup + Most Recent Diff Backup + All Cumulative log backups since Last full backup is this correct.
Almost.
Full + latest differential that's based on that full backup + log backups since the differential
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 8, 2015 at 9:40 am
Thank you every one for your replies.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Save a tree... Please don't waste paper unless you really need to!
When life puts into problem don't say 'God Why Me' say:w00t: 'Try Me'
June 8, 2015 at 2:53 pm
Now for a question to you... Your avatar is of a book cover for a "Complete Guide to Database Administration". Isn't this information in that book?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply