Question : SQL Server Backup Model

I am attempting to setup a database recovery model that would be in a "recover to the point of failure" state.

I have a database in full recovery mode and I am doing nightly full backups with transacation files. If I want to "recover to the point of failure " for a database, do I also backup the LDF file, which is the active log file? Seems like if I loose the LDF file, I loose transcation right up to the point of failure. If I do the BAK and TRN files once at night, then I only record transacations at that point. If the database fails in the afternoon, transacations in the morning would be lost. Would doing a full backup with transacation logs at night, get me the recover to the point of failure? Do I need to backup the LDF file?

 

Answer : SQL Server Backup Model

The scenario is that Full Backups are the anchor for begining a point in time restore.  Then you can use DIFF or TRN backups to get recovery faster.

If you restore a Full then you can restore a Diff and then Transaction backups after the time of the diff up to STOPAT='some date and time'.

If the database fails 30 minutes after the backups, you may or may not have the chance to backup the "tail" of the log and recover to that point in time.  If it is completely defunct, then you will have to your last transaction log backup.  You cannot do point in time with Full or Diff, just with the combination of the Full, Diff and Transaction.  If you are missing the transaction log backup then you will not be able to recover point in time.

But one thing to remember about the transaction log backups, is it may happen that you will not be able to backup the tail, but with todays databases, you should be able to.  But let's say that you cannot, you should plan your transaction log backups such that you have the tolerance of loss of data.  If you cannot stand to lose 15 minutes of data (for whatever reason) then you should plan for that by increasing the frequency of TRN backups.
Random Solutions  
 
programming4us programming4us