How to automate your backup like a pro

Maybe you are wondering if there is a way to automate backup with Langmeier Backup so that Langmeier Backup fits into your systems as a valuable backup feature.

Not only does Langmeier Backup offer extensive VB scripting capabilities, but you can also use Langmeier Backup to create automated backup jobs via batch. You can run pre-built backup jobs from within your own system and evaluate the backup result.

Evaluate the backup result using exit code

When lmbackup.exe is called with the /start parameter and the backup job, a backup is executed. The return value (exit code) of lmbackup.exe then contains the backup result.

Meaning of exit code:

-1

Data backup completed without errors.

 

0

Hardware error

 

1

The backup had to be aborted due to an error. For example: backup drive not accessible.

 

2

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

 

In a batch file, the ERRORLEVEL variable can be evaluated to get the exit code:

lmbackup.exe /start Backuptask.lmb
ECHO %ERRORLEVEL%

The zip file langmeier-automation.zip contains an example of this. Unzip the example completely on your computer to try it out.

 

Automate Langmeier backup by batch

The following command line arguments are available:

lmbackup.exe [/start] [path and file of the backup job] [[/add] [source path] [destination path] [/zip] [/encrypt] [/direct] [/close]]

parameters:

/start

Optional. Runs the backup. You must specify the path to the backup job.

 

/add

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

Note: The window for adding the path remains on the screen by default. Additionally, use the /close switch to close lmbackup.exe. You have the option to specify /zip and /encrypt (compressed, and/or encrypted). The additional option /direct specifies that the complete folder structure is omitted when backing up.

If a path specification contains spaces, you must enclose the path specification in quotation marks (").

If you have any questions about automation, why not contact our customer service and ask for automation support.

About the Author , Founder and CEO of Langmeier Software GmbH
Urs Langmeier Urs Langmeier is founder and CEO of Langmeier Software GmbH and thus responsible for the strategic further development of Langmeier software solutions.
 

Articles relevant to the topic
FAT32 or NTFS? Which format is better for backup?
How to back up your hard drive properly and not forget anything
Expert Tips: What is backup? Good Data Backup


Post a comment here...

This article covers:
Evaluate ExitCode from Backup
Integrate Langmeier Backup into own system
Integrate Langmeier Backup into third-party systems
Start Langmeier Backup by batch
Interesting:
Langmeier Software
What is a backup
Image Backup
Backup Software