Command line arguments

The Backup Tool supports several command line arguments. Using this way you can avoid loading into Backup Tool's user interface to perform some operations. You need to create and completely configure an Backup Tool project before using this way.

If started with command line params, the Backup Tool returns the following completion codes:

1 - the operation was completed successfully;

0 - the operation failed (see the log for details);

You can use this completion code in your batch files. The following sample .bat-file shows you one of the ways how to use it:

;--- sample.bat ---

"C:\Program Files\Backup Tool\Backup Tool.exe" /b "C:\Program Files\Backup Tool\Projects\test.svg"

goto answer%errorlevel%

:answer1

echo Backup successful

goto end

:answer0

echo Bckup failed!

:end

echo done!

;--- sample.bat ----

Currently the Backup Tool supports the following command line arguments:

/b - create a new backup (with Default Backup Mode).

If you place the "/b" option followed by Backup Tool project file name to the abp.exe command line, it creates a new backup of the project files. This way is very convenient when you want to include backup command into the batch file or to use an automation utility for backup creating. Please take a look to our Active Task Manager automation utility if you don't use one yet. See the Providing Automated Backups topic to learn how to use Backup Tool with automation utilities.

Syntax:

/b <Backup Tool-project to backup>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" /b "c:\Program Files\Backup Tool\example.svg"

/bf - create a new backup (with Full Backup Mode).

The same as the "/b" option, except that the backup will be created with the Full mode.

Syntax:

/bf <Backup Tool-project to backup>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" /bf "c:\Program Files\Backup Tool\example.svg"

/bi - create a new backup (with Incremental Backup Mode).

The same as the "/b" option, except that the backup will be created with the Incremental mode.

Syntax:

/bi <Backup Tool-project to backup>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" /bi "c:\Program Files\Backup Tool\example.svg"

/bd - create a new backup (with Differential Backup Mode).

The same as the "/b" option, except that the backup will be created with the Differential mode.

Syntax:

/bd <Backup Tool-project to backup>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" /bd "c:\Program Files\Backup Tool\example.svg"

/r - restore the specified backup.

The "/r" option followed by Backup Tool project file name and the backup filename to restore restores the selected backup to the default Target folder.

Syntax:

/r <Backup Tool-project to to restore> <project's backup to restore>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" /r "c:\Program Files\Backup Tool\example.svg" d:\archive\example.zip

/l - restore the last backup.

The "/l" (lowercase L) option followed by Backup Tool project file name restores the last backup to the default Target folder.

Syntax:

/l <Backup Tool-project to to restore> <project's backup to restore>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" /l "c:\Program Files\Backup Tool\example.svg"

no command - open the Backup Tool-project.

Place the Backup Tool-project file name to the abp.exe command line to open this project.

Syntax:

<Backup Tool-project to open>

Example:

"c:\Program Files\Backup Tool\Backup Tool.exe" "c:\Program Files\Backup Tool\example.svg"