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 »

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 »

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)
veremin
Product Manager
Posts: 20270
Liked: 2252 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 veremin »

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 19 guests