cookbook:backupexec
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cookbook:backupexec [2018/12/28 00:35] – [The bemcmd command] Scott Cunliffe | cookbook:backupexec [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BackupExec ====== | ====== BackupExec ====== | ||
- | [[https:// | + | [[https:// |
- | ===== The bemcmd command ===== | + | - Command line, or |
+ | - Windows Power Shell, or | ||
+ | - ODBC. | ||
- | <note tip>When BackupExec is installed a number of predefined reports | + | When [[object: |
- | ==== Extracting Volume information using the command line interface ==== | + | Unlike Veritas' |
- | <sxh> | + | |
+ | |||
+ | ===== The Command Line Interface ===== | ||
+ | |||
+ | The Command Line Interface was used in BackupExec 2010 and below. | ||
+ | <note tip>When BackupExec is installed a number of predefined reports are created. The ID of each predefined report varies from one installation to the next.</ | ||
+ | |||
+ | ==== Sample Command Line Syntax ==== | ||
+ | |||
+ | <code> | ||
bemcmd -o402 -r25 -ft:4 -f:" | bemcmd -o402 -r25 -ft:4 -f:" | ||
- | </sxh> | + | </code> |
+ | |||
+ | ===== The Windows Powershell interface ===== | ||
+ | |||
+ | The Windows Powershell interface replaced the Command Line Interface in BackupExec 2012. | ||
- | ==== Extracting Volume information using the Windows Power Shell interface | + | ==== Sample Powershell Script |
- | <sxh> | + | <code> |
cd " | cd " | ||
import-module BEMCLI | import-module BEMCLI | ||
Line 28: | Line 43: | ||
# | # | ||
- | # Initialize the outout | + | # Initialize the output |
# | # | ||
$Records = @() | $Records = @() | ||
Line 42: | Line 57: | ||
- | $Records | Export-CSV -notype BE.cs | + | $Records | Export-CSV -notype BE.csv |
- | </sxh> | + | </code> |
+ | |||
+ | ===== Synchronization ===== | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | Synchronization with TapeTrack is performed by calling the [[cli: | ||
+ | |||
+ | - The CSV output file. | ||
+ | - Command line arguments that instructs the program how to process volumes. | ||
+ | - A synchronization definition file that instructs the program how to interpret the CSV output. | ||
+ | |||
+ | ==== Example Command Line Arguments ==== | ||
+ | |||
+ | Call Windows Powershell and run the BE-List script. \\ | ||
+ | Call the TapeTrack Sync module and process the output created by the Powershell script. | ||
+ | |||
+ | < | ||
+ | powershell.exe -NoProfile -file " | ||
+ | TMSS10Sync -S user: | ||
+ | </ | ||
+ | |||
+ | Where: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== Example Synchronization Definition ==== | ||
+ | |||
+ | |||
+ | **BE.ttidef** | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # Set the Customer and Media as literal values as they never change | ||
+ | # | ||
+ | SetLiteral(CUSTOMER, | ||
+ | SetLiteral(MEDIA, | ||
+ | |||
+ | # | ||
+ | # Set CSV delimiter | ||
+ | # | ||
+ | SetCSVDelimiter("," | ||
+ | |||
+ | # | ||
+ | # Get the Volume-ID | ||
+ | # | ||
+ | Extract(VOLUME, | ||
+ | |||
+ | # | ||
+ | # Get the Repository from a translated location Name | ||
+ | # | ||
+ | Extract(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | |||
+ | # | ||
+ | # Set the Description to the Pool Name | ||
+ | # | ||
+ | Extract(DESCRIPTION, | ||
+ | RemoveSpaces(DESCRIPTION); | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | <- ^ : | ||
+ | |||
+ | {{tag> cookbook}} | ||
cookbook/backupexec.1545957318.txt.gz · Last modified: 2025/01/21 22:07 (external edit)