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

Advanced Storage Options

Post by ekisner » Feb 04, 2015 4:37 pm

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: 17447
Liked: 1553 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Advanced Storage Options

Post by veremin » Feb 04, 2015 4:45 pm

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: 197
Liked: 33 times
Joined: Jul 26, 2012 8:04 pm
Full Name: Erik Kisner
Contact:

Re: Advanced Storage Options

Post by ekisner » Feb 04, 2015 4:56 pm

Thanks... that's definitely it. I had tried to use "weekly", which definitely didn't work.

veremin
Product Manager
Posts: 17447
Liked: 1553 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Advanced Storage Options

Post by veremin » Feb 04, 2015 5:05 pm

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