-
- Enthusiast
- Posts: 48
- Liked: 1 time
- Joined: Jan 01, 2006 1:01 am
- Contact:
Add-VBRBackupJob From Veeam 5 to 6
Hi,
I have updated Veeam backup from 5 to 6. In version 5, I have the following command to create a job. Now I want to know how to set a specific backup proxy and an specific backup repository.
Many thanks in advance
Add-VBRBackupJob -Name $vbrjobname -Type VDDK -Server $vbrserver -Folder $vbrfolder -FileName $vbrfile -Objects $vmname
$job = Get-VBRJob | ?{$_.name -eq $vbrjobname}
Add-VBRJobObject -Job ($job) -Server ($server1) -Objects ($vmname)
$vo = $job.GetOptions()
$vo.RetainCycles = 2
$vo.RetainDays = 1
$vo.CompressionLevel = 9
$vo.VMToolsQuiesce = $true
$vo.Algorithm = "Syntethic"
$job.SetOptions($vo)
I have updated Veeam backup from 5 to 6. In version 5, I have the following command to create a job. Now I want to know how to set a specific backup proxy and an specific backup repository.
Many thanks in advance
Add-VBRBackupJob -Name $vbrjobname -Type VDDK -Server $vbrserver -Folder $vbrfolder -FileName $vbrfile -Objects $vmname
$job = Get-VBRJob | ?{$_.name -eq $vbrjobname}
Add-VBRJobObject -Job ($job) -Server ($server1) -Objects ($vmname)
$vo = $job.GetOptions()
$vo.RetainCycles = 2
$vo.RetainDays = 1
$vo.CompressionLevel = 9
$vo.VMToolsQuiesce = $true
$vo.Algorithm = "Syntethic"
$job.SetOptions($vo)
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Add-VBRBackupJob From Veeam 5 to 6
A couple of posts down would have got you on the right track
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
-
- Enthusiast
- Posts: 48
- Liked: 1 time
- Joined: Jan 01, 2006 1:01 am
- Contact:
Re: Add-VBRBackupJob From Veeam 5 to 6
Hi,
Thanks I can add jobs now but I have issue to setup configuration Like type of Backup, EmailNotification, COmpression...
Can you help me, please?
Thanks
Thanks I can add jobs now but I have issue to setup configuration Like type of Backup, EmailNotification, COmpression...
Code: Select all
get-folder "Support" | get-vm | foreach {
$v = $_.name
$vbrjobname = $v
$rep = Get-VBRBackupRepository | where {$_.name -eq "Backup Repository D"}
$enty = Find-VBRViEntity -Name $v
Add-VBRViBackupJob -Name $vbrjobname -BackupRepository $rep -Entity $enty
$job = Get-VBRJob | ?{$_.name -eq $vbrjobname}
$vo = $job.GetOptions()
$vo.EmailNotification = $true
$vo.EmailNotificationAddresses = ""
$vo.UseChangeTracking = $true
$vo.EnableChangeTracking = $true
$vo.RetainCycles = 2
$vo.RetainDays = 1
$vo.CompressionLevel = 9
$vo.VMToolsQuiesce = $true
$vo.Algorithm = "Syntethic"
$job.SetOptions($vo)
Thanks
-
- Enthusiast
- Posts: 48
- Liked: 1 time
- Joined: Jan 01, 2006 1:01 am
- Contact:
Re: Add-VBRBackupJob From Veeam 5 to 6
I understand how it works
Code: Select all
$job = Get-VBRJob | ?{$_.name -eq $vbrjobname}
$vo = $job.GetOptions()
$vo.NotificationOptions.EmailNotification = $true
$vo.BackupStorageOptions.EnableChangeTracking = $true
$vo.BackupStorageOptions.RetainCycles = 2
$vo.BackupStorageOptions.RetainDays = 1
$vo.BackupStorageOptions.CompressionLevel = 9
$vo.BackupTargetOptions.Algorithm = "Syntethic"
$vo.ViSourceOptions.VMToolsQuiesce = $true
$job.SetOptions($vo)
-
- VP, Product Management
- Posts: 7076
- Liked: 1510 times
- Joined: May 04, 2011 8:36 am
- Full Name: Andreas Neufert
- Location: Germany
- Contact:
Re: Add-VBRBackupJob From Veeam 5 to 6
Hi sidavid,
here you can find my example v6 script that doing exactly what you are looking for.
Add VM to Job/Create job and add VM
CU Andy
here you can find my example v6 script that doing exactly what you are looking for.
Add VM to Job/Create job and add VM
CU Andy
Who is online
Users browsing this forum: No registered users and 11 guests