4

The Setup:

Say we have a Database in Full Recovery Mode that does a nightly Database Backup, Transaction Log Backup, and Transaction Log Shrink.

Now the Transaction Log grows so quickly during the day, so we need to perform a Transaction Log Backup + Transaction Log Shrink every 6 hours to keep it small.

The Question:

Given these sequence of events (specifically the every-six-hours Transaction Log Backup/Shrink), will we still be able to perform an "Up-to-the-Minute" Restore? (That is, using the last DB Backup + Transaction Log to get the most recent data).

4
  • You say "nightly Transaction Log backup", 'Transaction Log backup every 6 hours", and then "hourly Transaction Log Backup"...which one is it?
    – user507
    Commented Oct 5, 2012 at 0:00
  • @ShawnMelton: There are 2 Transaction Log backups. 1 Nightly and 1 every 6 Hours. I've edited the question to make it more clear. Commented Oct 5, 2012 at 12:09
  • Ah. What is the purpose of the Tlog backup at night? Do you do it right after the full, or is the every 6 hr backup only during a certain period of the day?
    – user507
    Commented Oct 5, 2012 at 14:03
  • @ShawnMelton: We do the Nightly TLog Backup after the DB Backup. We then do TLog backups every 6 hours (until the next Nightly Backups). Commented Oct 5, 2012 at 14:45

1 Answer 1

11

Shrinking your transaction log should not be part of your routine. A transaction log backup clears the log file automatically; shrinking it afterward just causes it to have to grow again afterward. Read this for more information.

Yes, you should be able to perform point-in-time restores using your latest full backup and any subsequent transaction log backups. Anything more recent than the latest transaction log backup will require that the server still be operational enough to take a tail-log backup

The critical point is to test it. Backups are not reliable until you know from experience that you can restore the data successfully. This article and the links at the bottom of that article have some good information about SQL backup strategies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.