PowerShell Commands (Veeam): Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
Zeile 6: Zeile 6:
 
<source lang="powershell">Find-VBRViEntity -Name <VMName> | Start-VBRQuickBackup</source>
 
<source lang="powershell">Find-VBRViEntity -Name <VMName> | Start-VBRQuickBackup</source>
  
=== Disable & Export all Jobs and Re-Enable all Jobs ===
+
=== Disable, Export all Jobs and Re-Enable all Jobs ===
 
==== Disable & Export ====
 
==== Disable & Export ====
 
<source lang="powershell">
 
<source lang="powershell">

Version vom 13. November 2018, 17:58 Uhr

Backupjobs

Quick Backup starten

VM auf Hyper-V Host

Find-VBRHvEntity -Name <VMName> | Start-VBRQuickBackup

VM auf ESXi Host

Find-VBRViEntity -Name <VMName> | Start-VBRQuickBackup

Disable, Export all Jobs and Re-Enable all Jobs

Disable & Export

Add-PSSnapin veeam*
$AllVBRJobs = Get-VBRJob | select Name, JobType, IsScheduleEnabled
$AllVBRJobs | Export-Csv -Path "C:\temp\All-VBRJobs.csv"
Disable-VBRJob -Job $AllVBRJobs.Name

Enable all before-enabled-Jobs

$BeforeEnabledVBRJobs = Get-Content "C:\temp\All-VBRJobs.csv" | ConvertFrom-Csv | ? {$_.IsScheduleEnabled -match "True"}
Enable-VBRJob -Job $BeforeEnabledVBRJobs.Name


VTL-Tapes

Informationen eines VTL-Tapes anzeigen (Beispiel Tape "N00069")

Get-VBRTapeMedium -Name "N00069"

VTL-Tape Name ändern

Beispiel wenn der "Barcode" eines Tapes nicht mit dem "Namen" übereinstimmt.

Get-VBRTapeMedium -Id 039ff1d3-0544-4d9e-a2d2-f1f5fc7e2466  | Set-VBRTapeMedium -Name "N00068"

Konfiguration

Backup Repository (Limit Maximum concurrent tasks to (Bsp. 6))

Get-VBRBackupRepository -Name <Backupjob> | Set-VBRBackupRepository -MaxConcurrentJobs 6