PowerShell script exchange
Post Reply
GarionB
Influencer
Posts: 10
Liked: 2 times
Joined: Oct 08, 2013 1:21 am
Full Name: Garion Brown
Contact:

Change all backup jobs from Incremental to Reversed Incremen

Post by GarionB » 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: Oct 08, 2013 1:21 am
Full Name: Garion Brown
Contact:

Re: Change all backup jobs from Incremental to Reversed Incr

Post by GarionB » 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)

v.eremin
Product Manager
Posts: 16130
Liked: 1314 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Change all backup jobs from Incremental to Reversed Incr

Post by v.eremin » 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests