PowerShell script exchange
Post Reply
ekisner
Expert
Posts: 202
Liked: 34 times
Joined: Jul 26, 2012 8:04 pm
Full Name: Erik Kisner
Contact:

Advanced Storage Options

Post by ekisner »

Hi there..

I'm trying to alter our backup to disk jobs, I suspect I can get improved backup performance.

I want to clear the "Create Synthetic Full Backups" flag, which I can find within the CDomBackupTargetOptions object:
(Get-VBRJob -name "jobname").BackupTargetOptions.TansformFullToSyntethic (sic :wink: )

Where I'm having problems is in altering the Active Full backup settings. The "Create Active Full Backups" flag is already set in the job, but I want to change it from monthly to weekly and I cannot find the value to change to effect this. All I can see is the .BackupTargetOptions.FullBackupDays where I can change which day of the week it runs on.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Advanced Storage Options

Post by veremin »

But I want to change it from monthly to weekly and I cannot find the value to change to effect this.
Try this code:

Code: Select all

$Job = GEt-VBRJob -Name "Name of your Job"
$Options = $Job.GetOptions()
$Options.BackupTargetOptions.FullBackupScheduleKind = "Daily"
$Job.SetOptions($Options)
Thanks.
ekisner
Expert
Posts: 202
Liked: 34 times
Joined: Jul 26, 2012 8:04 pm
Full Name: Erik Kisner
Contact:

Re: Advanced Storage Options

Post by ekisner »

Thanks... that's definitely it. I had tried to use "weekly", which definitely didn't work.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Advanced Storage Options

Post by veremin »

You're welcome. Feel free to ask, should other help be needed. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests