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:29] – 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 |
+ | - Windows Power Shell, or | ||
+ | - ODBC. | ||
+ | When [[object: | ||
+ | |||
+ | Unlike Veritas' | ||
+ | |||
+ | |||
+ | |||
+ | ===== 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 ==== | ||
+ | |||
+ | < | ||
+ | bemcmd -o402 -r25 -ft:4 -f:" | ||
+ | </ | ||
+ | |||
+ | ===== The Windows Powershell interface ===== | ||
+ | |||
+ | The Windows Powershell interface replaced the Command Line Interface in BackupExec 2012. | ||
+ | |||
+ | ==== Sample Powershell Script ==== | ||
+ | |||
+ | < | ||
+ | cd " | ||
+ | import-module BEMCLI | ||
+ | |||
+ | cd " | ||
+ | |||
+ | # | ||
+ | # Get Media list from Backup Exec | ||
+ | # | ||
+ | $MediaList = Get-BEMedia | ||
+ | $Today = Get-Date | ||
+ | |||
+ | # | ||
+ | # Initialize the output array | ||
+ | # | ||
+ | $Records = @() | ||
+ | |||
+ | ForEach ($Media in $MediaList) { | ||
+ | $Record = "" | ||
+ | $Record.CartridgeLabel = $Media.Name | ||
+ | $Record.MediaSetName = $Media.MediaSet | ||
+ | $Record.MediaVault = $Media.MediaVault | ||
+ | $Record.RetentionHoursRemaining = [Int]($Media.OverwriteProtectedUntilDate - $Today).TotalHours | ||
+ | $Records += $Record | ||
+ | } | ||
+ | |||
+ | |||
+ | $Records | Export-CSV -notype BE.csv | ||
+ | </ | ||
+ | |||
+ | ===== 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.1545956951.txt.gz · Last modified: 2025/01/21 22:07 (external edit)