Sql-server – Transaction log uses (not backups of transaction logs)

disaster recoverysql servertransaction-logvss

Working with an interesting scenario that quite frankly, I have not had the time to test, and would love some expert insight. I have a question concerning transaction logs, and their possible use for recovery (or anything at all for that matter). Imagine that you are using VSS to take application consistent snapshots of volumes holding both .mdf and .ldf files for the database (storage array driven). The questions I have is:

Given that only VSS snapshots are available (point in time), I am wondering if there is any use in having a database in full recovery (assuming there was a way of truncating the transaction logs as well). So, the setup is: database is in full recovery -> VSS snapshot of database -> truncate transaction logs. Can the transactions in the log be of any use to me if I were to mount a clone of the database?

Best Answer

I would 'suggest' that VSS snapshots are 'mostly' intended for an out-and-out disaster restore scenario. It is my understanding that VSS snapshots allow you to restore to that snapshot time. No time just before snapshot and no time just after the snapshot (until the next snapshot).

What are you going to do when an accidental delete occurs due to user error? What happens 10 minutes after your VSS snapshot is taken and the server dies or a disk crashes. What about corruption that hits 10 minutes after your VSS snapshot?

There is tremendous benefit in having your databases in FULL recovery mode and taking timely transaction log backups (even down to the minute)

Honestly, this gets down to your company RPO (Recovery Point Objective) and RTO (Recovery Time Objective). Are YOU the one that can actually decide these things?