Acronis Backup for Windows Server Essentials - User Guide User Manual

Page 287

Advertising
background image

287

Copyright © Acronis International GmbH, 2002-2014

1. Dismount the database (in Exchange 2010) or all databases of the storage group (in Exchange

2003/2007). For more information, see:

Exchange 2010: http://technet.microsoft.com/en-us/library/bb123903

Exchange 2007: http://technet.microsoft.com/en-us/library/bb124936(v=exchg.80)

Exchange 2003: http://technet.microsoft.com/en-us/library/aa996179(v=exchg.65)

2. Delete all the log files of the database or the storage group.
3. Mount the dismounted database or databases.

For more information, see:

Exchange 2010: http://technet.microsoft.com/en-us/library/bb123587.aspx

Exchange 2007: http://technet.microsoft.com/en-us/library/aa998871(v=exchg.80).aspx

Exchange 2003: http://technet.microsoft.com/en-us/library/aa995829(v=exchg.65)

Log truncation of online databases

This method is good for the databases that are in constant use and cannot be dismounted. If a
database is in use, you can safely delete only those transaction log files whose data has been
committed to the database. Do not delete log files whose data has not been committed to the
database, they are essential to recover the database consistency from unexpected shutdown.

To delete the committed transaction logs

1. Determine which logs have been committed to the database by using the Eseutil tool:

a. Execute the eseutil /mk <path to checkpoint file> command, where the <path to

checkpoint file> is a path to the checkpoint file of the required database or the storage
group.

b. Look at the Checkpoint field in the output. For example, you should see something like

this:

CheckPoint: (0x60B, 7DF, 1C9)

The first number 0x60B is the hexadecimal log generation number of the current log file. This
means that all the log files with lesser numbers have been committed to the database.

2. Delete all the log files whose numbers are less than the number of the current log file. For

example, you can safely delete Enn0000060A.log, Enn00000609.log and the lesser files.

Log truncation after a backup

You can automate the above truncation procedure by using a script. If you add the script to the
Post-backup command (p. 122), the logs will be truncated immediately after a backup.

This method assumes that you have scripting skills and are familiar with Acronis Backup
command-line utility (acrocmd). For detailed information about acrocmd see the Command-Line
Reference.

The script should contain the following steps:

1. Mount the volumes containing the necessary database files by using the mount command.

Template:

acrocmd mount --loc=<path> --credentials=<user name>,<password> --arc=<archive
name> --volume=<volume numbers> --letter=<letters>

Example:

acrocmd mount --loc=\\bkpsrv\backups --credentials=user1,pass1 --arc=my_arc
--volume=1-1 --letter=Z

Advertising
This manual is related to the following products: