Code: Select all
Welcome to the Veeam Backup and Replication PowerShell Toolkit!
To list available commands, type Get-VBRCommand
To open online documentation on all available commands, type Get-VBRToolkitDocumentation
c Veeam Software Group GmbH. All rights reserved.
PS C:\Users\Administrator> Get-VBRTapeMediaPool -Name "Monthly"
Capacity : 23999998328832
FreeSpace : 22127039217664
MediaSetCreationPolicy : Never
MediaSetName : Media set # %id% %date%
MoveOfflineToVault : False
RetentionPolicy : Period
MultiStreamingOptions : Veeam.Backup.PowerShell.Infos.VBRMultiStreamingOptions
Vault :
Worm : False
LibraryId : dc73ffd3-f7d0-48a7-af9d-4d63265d43c2
MoveFromFreePool : True
Type : Custom
EncryptionOptions : False
GlobalOptions : Veeam.Backup.PowerShell.Infos.VBRGlobalMediaPoolOptions
Medium : {1000004L, 1000021L}
Id : a86cf70e-6708-406b-94b0-bc8a69513fe3
Name : Monthly
Description : Created by sanbkup\Administrator at 5/25/2023 3:34:33 PM.
PS C:\Users\Administrator> Get-VBRTapeJob -Name "Weekly Backup"
FullBackupPolicy : Daily
IncrementalBackupPolicy : Daily
Object : {}
NdmpObject : {/svm_fcp_1/san_disk_02, /svm_fcp_1/san_disk_03, /svm_fcp_1/san_disk_04,
/svm_fcp_1/san_disk_05}
UseVss : False
ParallelDriveOptions : Veeam.Tape.Model.CTapeJobParallelDriveOptions
EnableFileAclChangeTracking : False
EjectCurrentMedium : False
ExportCurrentMediaSet : False
ExportDays : {Sunday, Monday, Tuesday, Wednesday...}
FullBackupMediaPool : weekly
IncrementalBackupMediaPool : weekly
UseHardwareCompression : False
NotificationOptions :
JobScriptOptions : Veeam.Backup.PowerShell.Infos.VBRJobScriptOptions
Enabled : True
NextRun : 7/5/2023 11:00:00 PM
Target : weekly
Type : FileToTape
LastResult : Success
LastState : Stopped
Id : e0dca307-b479-43f9-8939-f9b7097b7773
Name : Weekly Backup
Description : Created by sanbkup\Administrator at 6/8/2023 8:27 PM.
PS C:\Users\Administrator>
PS C:\Users\Administrator> [b]$newpool = Get-VBRTapeMediaPool -Name "Monthly"[/b]
PS C:\Users\Administrator> [b]Get-VBRTapeJob -Name "Weekly Backup" | Set-VBRBackupToTapeJob -FullBackupMediaPool $newpool[/b]
Set-VBRBackupToTapeJob : The input object cannot be bound to any parameters for the command either because the command
does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline
input.
At line:1 char:40
+ ... Weekly Backup" | Set-VBRBackupToTapeJob -FullBackupMediaPool $newpool
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Weekly Backup:PSObject) [Set-VBRBackupToTapeJob], ParameterBindingExce
ption
+ FullyQualifiedErrorId : InputObjectNotBound,Veeam.Backup.PowerShell.Cmdlets.SetVBRBackupToTapeJob
PS C:\Users\Administrator>