Hello,
I would like to change job governance and I need to move existing backup job to new backup job.
For this I create this script :
It's working fine but that means I need to know the source job where are my VM.
I would like to do it without specify the backup job source.
What could help me to know what is the backup job used to backup my VM ? (I use TAG on backup job so I think I need to use Get-VBRRestorePoint but I would like only backup job and no backup copy or other)
My VM are never in more than 1 backup job
Thanks for your help
I would like to change job governance and I need to move existing backup job to new backup job.
For this I create this script :
Code:
#VMs to migrate$VMs = "VM1","VM2"$SourceJob = "SourceJobName"$TargetJob = "DestinationJobName"Foreach ($VM in $VMs){ $SourceJobObj = Get-VBRBackup -Name $SourceJob $TargetJobObj = Get-VBRJob -Name $TargetJob #Move backup from source backup job to target backup job Move-VBRBackup -Backup $SourceJobObj -Job $TargetJobObj -Name $VM -RunAsync}It's working fine but that means I need to know the source job where are my VM.
I would like to do it without specify the backup job source.
What could help me to know what is the backup job used to backup my VM ? (I use TAG on backup job so I think I need to use Get-VBRRestorePoint but I would like only backup job and no backup copy or other)
My VM are never in more than 1 backup job
Thanks for your help
Statistics: Posted by matteu — Jun 10, 2025 3:37 pm







