Langmeier Backup FAQ

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


I don't want to complicate anything. I don't want to develop the ultimate business software. I don't want to be listed in a top technology list. Because that's not what business applications are about. It's about making sure your data is seamlessly protected. And it's about making sure everything runs smoothly while you maintain full control and focus on growing your business. Simplicity and reliability are my guiding principles and inspire me every day.
 

Further lookup: Automation

Articles relevant to the topic
Why are optimized business processes important for your company?
The pros and cons of the different Windows file systems
FAT32 or NTFS? Which format is better for backup?


Post a comment here...

This article covers:
Start Langmeier Backup by batch
Integrate Langmeier Backup into own system
Start Langmeier by batch
Evaluate ExitCode from Backup