PowerShell script exchange
Post Reply
the_mentor
Enthusiast
Posts: 48
Liked: 8 times
Joined: Jul 26, 2012 11:10 pm
Full Name: DeMentor
Contact:

Looking for a way to get the full backup day of all Jobs.

Post by the_mentor »

Hi everyone,
I'm looking for a quick powershell script that will get me the configured day of a full backup of all my jobs.

so far I've gone as far as:
$VBRJobName = "BackupJobName"
$(Get-VBRJob -Name "$VBRJobName").ScheduleOptions

This returns a lot of information about the backup's schedule options but i dont see any information here about what is the configured full backup day of a job.

can one of you assist me or point me in the right direction?
-DeMentor
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Looking for a way to get the full backup day of all Jobs

Post by PTide »

Hi,

Please try $(Get-VBRJob -Name "$VBRJobName").BackupTargetOptions

Thank you.
the_mentor
Enthusiast
Posts: 48
Liked: 8 times
Joined: Jul 26, 2012 11:10 pm
Full Name: DeMentor
Contact:

Re: Looking for a way to get the full backup day of all Jobs

Post by the_mentor »

Thank you very much !!
This pointed me in the right direction.
I found this to output the exact Full backup days.

$($(Get-VBRJob -Name "$VBRJobName").BackupTargetOptions).FullBackupDays
-DeMentor
veremin
Product Manager
Posts: 20405
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Looking for a way to get the full backup day of all Jobs

Post by veremin » 1 person likes this post

Try the following one-liner. It lists backup jobs, along with used full backup mode, and full backup days.

Code: Select all

Get-VBRJob | where {$_.JobType -eq "Backup"} | select -Property @{N="Name";E={$_.Name}}, @{N="Active Full Enabled";E={$_.BackupStorageOptions.EnableFullBackup}}, @{N="Synthetic Full Enabled";E={$_.BackupTargetOptions.TransformFullToSyntethic}}, @{N="Full Backup Days";E={$_.BackupTargetOptions.FullBackupDays}} | ft -AutoSize
Thanks.
Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 8 guests