• No results found

Pre/Post data capture commands

In document Acronis Backup & Recovery 11 (Page 112-114)

4 Backup

4.7 Default backup options

4.7.19 Pre/Post data capture commands

This option is effective for both Windows and Linux operating systems.

The option enables you to define the commands to be automatically executed before and after data capture (that is, taking the data snapshot). Data capture is performed by Acronis Backup & Recovery 11 at the beginning of the backup procedure.

The following scheme illustrates when the pre/post data capture commands are executed. <--- Backup ---> Pre-backup command Pre-data capture command Data capture Post-data capture command Post-backup command

If the Volume Shadow Copy Service (p. 117) option is enabled, the commands' execution and the Microsoft VSS actions will be sequenced as follows:

"Before data capture” commands -> VSS Suspend -> Data capture -> VSS Resume -> "After data capture" commands.

Using the pre/post data capture commands, you can suspend and resume a database or application that is not compatible with VSS. As opposed to the Pre/Post commands (p. 110), the pre/post data capture commands will be executed before and after the data capture process. This takes seconds. The entire backup procedure may take much longer, depending on the amount of data to be backed up. Therefore, the database or application idle time will be minimal.

To specify pre/post data capture commands

1. Enable pre/post data capture commands execution by checking the following options:

Execute before the data capture

Execute after the data capture 2. Do any of the following:

Click Edit to specify a new command or a batch file

Select the existing command or the batch file from the drop-down list 3. Click OK.

4.7.19.1 Pre-data capture command

To specify a command/batch file to be executed before data capture

1. In the Command field, type a command or browse to a batch file. The program does not support interactive commands, i.e. commands that require user input (for example, "pause".)

113 Copyright © Acronis, Inc., 2000-2011

2. In the Working directory field, specify a path to a directory where the command/batch file will be executed.

3. In the Arguments field specify the command’s execution arguments, if required.

4. Depending on the result you want to obtain, select the appropriate options as described in the table below.

5. Click Test command to check if the command is correct.

Check box Selection

Fail the backup task if the command execution fails*

Selected Cleared Selected Cleared

Do not perform the data capture until the command execution is complete

Selected Selected Cleared Cleared

Result Preset

Perform the data capture only after the command is

successfully executed. Fail the task if the command execution fails.

Perform the data capture after the command is executed despite execution failure or success.

N/A Perform the data capture concurrently with the command and irrespective of the command execution result.

* A command is considered failed if its exit code is not equal to zero.

4.7.19.2 Post-data capture command

To specify a command/batch file to be executed after data capture

1. In the Command field, type a command or browse to a batch file. The program does not support interactive commands, i.e. commands that require user input (for example, "pause".)

2. In the Working directory field, specify a path to a directory where the command/batch file will be executed.

3. In the Arguments field specify the command’s execution arguments, if required.

4. Depending on the result you want to obtain, select the appropriate options as described in the table below.

5. Click Test command to check if the command is correct.

Check box Selection

Fail the task if the command execution fails*

Selected Cleared Selected Cleared

Do not back up until the command execution is complete

Selected Selected Cleared Cleared

Result Preset

Continue the backup only after the command is

Continue the backup after the command is executed despite command

N/A Continue the backup concurrently with the command execution and irrespective of the

114 Copyright © Acronis, Inc., 2000-2011

successfully

executed. Delete the TIB file and

temporary files and fail the task if the command execution fails. execution failure or success. command execution result.

* A command is considered failed if its exit code is not equal to zero.

4.7.20 Replication/cleanup inactivity time

This option is effective only if you set up replication or retention rules (p. 84) for the backups. This option defines a time period when starting replication or applying retention rules is not allowed. The operations will be performed when the inactivity time ends, if the machine is powered on at that moment. The operations that had started before the inactivity time began continue without

interruption.

The inactivity time affects all locations, including the primary one. The preset is: Disabled.

To specify the inactivity time, select the Do not start replication/cleanup within the following time check box, and then select the days and the time period during the day.

Usage example

You may want to use this option to separate the backup process from replication or cleanup. For example, suppose that you back up machines locally during the day and replicate the backups to a network folder. Make the inactivity time contain the working hours. Replication will be performed after the working hours, when network load is lower.

In document Acronis Backup & Recovery 11 (Page 112-114)