Transaction log best practice?
I recently disovered due to an ugly situation that transaction logs are needed and i was wanting to see what others are doing in regards to truncating the logs. I've been reading all over the place on how some say you shouldnt truncate until after a full backup and then others saying they truncate every time the log backup runs and i just am not sure what the best method is.
Because we were only backing up the DB once a day with no logs we lost what i have now learned the hardway was an unexceptable amount of data. So logging is on and currently its doing about 200mb of transaction data every hour.
My thoughts are to run the log backups every 2hrs during the work window (7am - 8pm) with truncation and then the normal nightly full which runs at 10pm.
To not run into the "unexceptable" dataloss scenario again does this sound like solid plan?
From the NetBackup for SQL Admin Guide:
transaction log backup
A backup of the inactive portion of the transaction log. Typically, this
portion of the transaction log is truncated after it has been backed up
successfully.(Note that a full backup does not truncate the transaction log.)
---------
Set up log backup with 2 hour schedule since that is current requirement. When time permits, try 1 hour schedule (or less) and review the impact (it may be very little).