Launching via batch processing file

Top  Previous  Next

You can launch the backup program via batch. The following command line arguments are available to you to do this:

lmbackup.exe [/start] [backup task path and file] [[/add] [source path] [destination path] [/zip] [/encrypt] [/direct]]

Parameter:

/start path

Optional. Runs the backup. You have to specify the backup task path.

/add path

Optional. Adds a path to the backup task. Specify the source path and (optionally) the destination path.

Note:The window for adding the path remains on the screen. You can also use the /close switch to close lmbackup.exe. You are also able to specify the options /zip and /encrypt (compressed, and/or encrypted). The additional option /direct causes the backup to dispense with the complete folder structure.

Should a path contain spaces, you have to put the path information in inverted commas (").

Example:

The following example runs the back up job "D:\Eigene Dateien sichern.lmb" ("D:\Backup own files.Imb").

lmbackup.exe /start "D:\Eigene Dateien sichern.lmb" ("D:\Back up own files.Imb")

Evaluation of the return value (error level)

Launching the program with the parameter /start runs a backup. The numeral 0, 1 or 2 is returned as the return value upon completion.

What the return values mean:

0

Backup completed without error.

1

The backup had to be aborted because of an error. For example: Backup drive not accessible.

2

At least one file could not be backed up, but the backup was completed.

The ERRORLEVEL variable can be evaluated in a batch file in order to obtain the return value.

lmbackup.exe /start Backuptask.lmb

ECHO %ERRORLEVEL%