Change all backup jobs from Incremental to Reversed Incremen

PowerShell script exchange

Change all backup jobs from Incremental to Reversed Incremen

Veeam Logoby GarionB » Thu May 08, 2014 5:56 pm

Hi,
Can someone point me in the right direction for me changing all backup jobs from "incremental' to "reversed incremental"? I would appreciate any help, thanks!
GarionB
Influencer
 
Posts: 10
Liked: 2 times
Joined: Tue Oct 08, 2013 1:21 am
Full Name: Garion Brown

Re: Change all backup jobs from Incremental to Reversed Incr

Veeam Logoby GarionB » Thu May 08, 2014 6:32 pm

this is what I have so far testing with one job but I don't think I'm hitting the right backup options as nothing is changing;

asnp VeeamPSSnapin
$Job = Get-VBRJob -name "Test"
$OptionsToSet = $Job.GetOptions()
$OptionsToSet.BackupTargetOptions.Algorithm = "Full"
$Job.SetOptions($OptionsToSet)
GarionB
Influencer
 
Posts: 10
Liked: 2 times
Joined: Tue Oct 08, 2013 1:21 am
Full Name: Garion Brown

Re: Change all backup jobs from Incremental to Reversed Incr

Veeam Logoby v.Eremin » Mon May 12, 2014 8:48 am

If you want to set "reversed incremental" as a mode for all backup jobs, then, the following script should help:

Code: Select all
$Jobs = Get-VBRJob | where {$_.JobType -eq "Backup"}
foreach ($Job in $Jobs)
{
   $Options = $Job.GetOptions()
   $Options.BackupTargetOptions.Algorithm = "Syntethic"
   $Job.SetOptions($Options)
}   


Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests