|
Langmeier Backup FAQ
Guide: Extend Langmeier Backup with VBScriptContents of this page:
Command Index Save script Add script to the backup task Alternative scripting options Langmeier Backup offers the possibility to create scripts to implement advanced concepts for data backup. Experienced administrators thus have the possibility to introduce very specific requirements in the area of data backup into the backup run. Examples
The script editor is located under the menu Tools > Edit scripts:
Click on the "Script" selection field and select the empty entry there to create a new script. Use Save as... you can save this script. You can use all VBScript commands in the script. In addition, you can use the scripting commands specially implemented for Langmeier Backup described below to automate Langmeier Backup. Command index
The complete command index can be found in the Langmeier Backup online help, which you can call up in the program. Here is an excerpt of frequently requested functions. Progress (variable)Assignment of a value between 1 and 100 to the Progress variable, sets the value of the progress bar in the data backup window. Examples:
Message (method)Outputs a text to the user in the Langmeier Backup message window. This text is also saved in the backup log. Parameters:
italic = optional parameters Example 1: Example 2:
Backup (method)The "Backup" function can be used to back up a folder or a file. Parameters:
italic = Optional parameters Example 1: A normal data backup where the source and destination are specified. 'Normal backup: Example 2: An encrypted data backup: The source and destination are specified here and the data is also set to be encrypted.
Example 3: Encrypted backup with complete path: As in example 2, an encrypted data backup is performed here and the complete path is also backed up. 'Encrypted backup with complete path: Break (method)Breaks the backup, but not the current script. Parameters:
GetMediaName (function)Returns the name of the inserted medium. Parameters:
Example: If GetMediaName ("\.tape0") <> SendSMS (Text as String, Number As String) (function)One option that many of our customers use is the "SendSMS" option. This option sends the customer an SMS to a cell phone at the end of a backup. If the recipient is not located in Switzerland, the international area code must be entered.
Parameters:
Example: 'Sends a text message to the backup administrator: 'Sends a text message to the backup administrator - Counter (variable)Indicates how many files were backed up. This value appears in the feedback to the user after the backup process. This value is also specified in the backup log. Example: Destination (variable)Returns or overwrites the destination folder preset in the backup element of the script.
Example:
Source (variable)Returns the source preset in the backup element of the script, or overwrites this source. If the script name (e.g. @SendSMS) is under the source, the script name is returned.
Example:
Save scriptAfter you have written/created a script, save it. The options "Save" and "Save as" can be found below the script editor.
Click on"Save as" to give your script a name:
The scripts are saved in the following folder:
Add script to the backup taskYou can add all scripts you have saved to the backup task in the main window of Langmeier Backup under"Backup" -"Add":
After you have selected your script, the script name appears with a preceding "@" in the backup task, here "@SMS". The script is executed in the backup run as soon as you click on "Backup" - "Start".
By double-clicking on the inserted script, here "@SMS", you can define the destination path (which you can call up in the script using "Destination" ):
Sequence: Note the sequence in the backup job! If a script is to be executed at the end of a backup, then the script must also be inserted at the end. Langmeier Backup processes the scripts in the order in which they are in the backup job. If the script is a function that is to be called at the beginning or after a specific folder path, then the script must be inserted in the correct line accordingly. Alternative scripting optionsYou can also add a self-created VBScript to a job in a different way. Go to "Options" and then to "Settings for this job". Here you will find options that are executed "Before backup" and options that are executed "After backup". Add your VBScript to the desired location. Please note that the Langmeier Backup functions described above, such as SendSMS or Backup, are not available with this method. However, you can use this method to call any batch scripts or any compiled exe files.
The information in this article is available in the following products:
Look it up further:
Related articles
Post a comment here...
This article covers the topics:VBScriptBackup software with VBScript Langmeier Backup VBS Langmeier Backup Script |
|||||||||||||||||||||||||||||||||||||