SQL databases with the Full Recovery model or Bulk-Logged model cannot have their logs truncated without taking a backup of the transaction log first. This is by design within SQL Server in order to maintain the log chain. When the transaction log is backed up, the log is truncated.
By design, vRanger cannot perform a log backup. The freeze.bat script install can be tweaked to do a backup to NUL, but it is not recommended. (Anything that is written to 'NUL' is discarded by the OS).
Currently, It is not possible for vRanger to truncate the logs for these types of databases.
To identify Full Recovery and Bulk-Logged databases, this query can be run within SQL management studio:
However, it is possible to create a log transaction backup within the SQL agent jobs using T-SQL or using SQLCMD as a scheduled task to a local drive or a shared location:
BACKUP DATABASE [Database]
TO DISK = 'C:\backupfolder\database.bak'
BACKUP LOG [Database]
TO DISK = 'C:\backupfolder\database.trn'
If the database is configured with the Simple recovery model, it can be truncated successfully when using the vRanger VSS tools.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center