PowerShell Commands (Veeam): Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
K
 
(5 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
== Backupjobs ==
 +
=== Quick Backup starten ===
 +
==== VM auf Hyper-V Host ====
 +
<source lang="powershell">Find-VBRHvEntity -Name <VMName> | Start-VBRQuickBackup</source>
 +
==== VM auf ESXi Host ====
 +
<source lang="powershell">Find-VBRViEntity -Name <VMName> | Start-VBRQuickBackup</source>
 +
 +
=== Disable, Export and Re-Enable all Jobs ===
 +
==== Disable & Export ====
 +
<source lang="powershell">
 +
Add-PSSnapin veeam*
 +
$AllVBRJobs = Get-VBRJob | select Name, JobType, IsScheduleEnabled
 +
$AllVBRJobs | Export-Csv -Path "C:\temp\All-VBRJobs.csv"
 +
Disable-VBRJob -Job $AllVBRJobs.Name
 +
</source>
 +
 +
==== Enable all before-enabled-Jobs ====
 +
<source lang="powershell">
 +
$BeforeEnabledVBRJobs = Get-Content "C:\temp\All-VBRJobs.csv" | ConvertFrom-Csv | ? {$_.IsScheduleEnabled -match "True"}
 +
Enable-VBRJob -Job $BeforeEnabledVBRJobs.Name
 +
</source>
 +
 +
 +
 
== VTL-Tapes ==
 
== VTL-Tapes ==
 
=== Informationen eines VTL-Tapes anzeigen (Beispiel Tape "N00069") ===
 
=== Informationen eines VTL-Tapes anzeigen (Beispiel Tape "N00069") ===
Zeile 7: Zeile 31:
 
<source lang="powershell">Get-VBRTapeMedium -Id 039ff1d3-0544-4d9e-a2d2-f1f5fc7e2466  | Set-VBRTapeMedium -Name "N00068" </source>
 
<source lang="powershell">Get-VBRTapeMedium -Id 039ff1d3-0544-4d9e-a2d2-f1f5fc7e2466  | Set-VBRTapeMedium -Name "N00068" </source>
  
 +
== Konfiguration ==
 +
=== Backup Repository (Limit Maximum concurrent tasks to (Bsp. 6)) ===
 +
<source lang="powershell">Get-VBRBackupRepository -Name <Backupjob> | Set-VBRBackupRepository -MaxConcurrentJobs 6</source>
  
  
  
  
 
+
[[Kategorie:Veeam]]
[[Kategorie:Veeam|PowerShell]]
+
[[Kategorie:PowerShell]]

Aktuelle Version vom 13. November 2018, 18:00 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 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