1742: Using Batch Files in Acronis True Image

Also read in:

Translate to:

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.

  1. Run Acronis True Image and start the Backup or Recovery wizard;
  2. Select the partitions or the whole drive that you want to back up or restore;
  3. On the Choose Restore Options or Choose Backup Options screen select Set the options manually:

  4. 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:

  5. 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:

  6. Click OK and select Edit next to After backup process or After restoration process;
  7. 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.

  1. Run Acronis True Image and start the Backup wizard;
  2. Select the partitions or the whole drive that you want to back up;
  3. On the Choose Backup Options screen select Set the options manually:

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

  6. 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:

  7. Click OK and select Edit next to After data capture;
  8. 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:

(!) When running these batch files from on non-english operating systems, you will receive an error message similar to:

System error 1060 has occurred.
The specified service does not exist as an installed service.

This is because the system services have their own localized names. You can run the net start command in the Command Line (Start-Run -> cmd) to view a list of running services. Use the names displayed there to replace service names in the batch files. If the service name has spaces in it, do not forget to put quotes around the name.

Tags: 

You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
1 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.