Acronis Backup & Recovery 11.5 does not truncate transaction logs after creating a disk backup. If you do not use the native backup engine of Microsoft SQL Server or any other third-party backup solution that automatically manages transaction logs, you can manage logs by using the following methods.
For more information about truncation refer to the following article:
http://technet.microsoft.com/en-us/library/ms189085(v=sql.105)
For more information about shrinking refer to the following article:
http://technet.microsoft.com/en-us/library/ms178037(v=sql.105)
Log truncation by using SQL Server Management Studio
When you switch a database to the Simple Recovery Model, transaction logs are truncated automatically.
Automating log truncation and shrinking
You can automate the above truncation procedure by using a script and (optionally) add log file shrinking. If you add the script to the Post-backup command, the logs will be truncated and shrunk immediately after a backup. This method assumes that you have Transact-SQL scripting skills and are familiar the sqlcmd utility.
For more information about Transact-SQL and sqlcmd refer to the following articles:
To automate transaction log truncation and shrinking for an SQL instance
USE database_name
ALTER DATABASE database_name SET RECOVERY SIMPLE;
DBCC SHRINKFILE(logfile_name);
ALTER DATABASE database_name SET RECOVERY FULL;
In the last string, the SET RECOVERY value depends on the original recovery model of the particular database and could be FULL or BULK_LOGGED.
Example for an instance having two databases (TestDB1 and TestDB2):
USE TestDB1;
ALTER DATABASE TestDB1 SET RECOVERY SIMPLE;
DBCC SHRINKFILE(TestDB1_log);
ALTER DATABASE TestDB1 SET RECOVERY FULL;
USE TestDB2;
ALTER DATABASE TestDB2 SET RECOVERY SIMPLE;
DBCC SHRINKFILE(TestDB2_log);
ALTER DATABASE TestDB2 SET RECOVERY BULK_LOGGED;
sqlcmd -S myServer\instanceName -i C:\myScript.sql
Where:
To automate transaction log truncation and shrinking for multiple SQL instances
If you have more than one instance on the machine and want to apply the above procedure to these instances, proceed as follows.
sqlcmd -S myServer\instance1 -i C:\script1.sql
sqlcmd -S myServer\instance2 -i C:\script2.sql