
You can make Acronis True Image execute manually created batch files before and after the backup or restore
Introduction
You can make Acronis True Image execute batch files before and after the backup procedure, restoration process, or before and after the actual data capture.
Solution
Using a batch file as Pre/post commands
Acronis True Image runs pre commands before the actual backup or restoration process starts.
Acronis True Image runs post commands after the actual backup or restoration process is over.
- Run Acronis True Image and start the Backup or Recovery wizard;
- Select the partitions or the whole drive that you want to back up or restore;
- On the Choose Restore Options or Choose Backup Options screen select Set the options manually:

- On the Backup Creation Options or Restoration Options screen select Pre/Post commands and click Edit next to Before backup process or Before restoration process:

- On the Edit Command window type in the path to the batch file in the Command field and the directory where the batch file is in the Working directory field:

- Click OK and select Edit next to After backup process or After restoration process;
- Specify the batch file that should be executed after the restore process.
Using a batch file as Before/after data capture commands
The Before/after data capture commands option is available only in the following products:
These commands are used to suspend database work for a short time to let Acronis True Image create a snapshot of the system.
Acronis True Image runs Before/after data capture commands before and after the actual data capture (snapshot) and always before the backup process is completed.
- Run Acronis True Image and start the Backup wizard;
- Select the partitions or the whole drive that you want to back up;
- On the Choose Backup Options screen select Set the options manually:

- On the Backup Creation Options window select Before/after data capture commands;
- Click Edit next to Before data capture:

- On the Edit Command window type in the path to the batch file in the Command field and the directory where the batch file is in the Working directory field:

- Click OK and select Edit next to After data capture;
- Specify the batch file that should be executed after the data capture but before the backup process:

More information
You can take a look at Difference between Pre/Post Commands and Before/After Data Capture Commands.
See also:
You can download sample batch files: