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

PowerShell script exchange

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

Veeam Logoby the_mentor » Thu Dec 31, 2015 10:55 pm

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?
the_mentor
Enthusiast
 
Posts: 38
Liked: 5 times
Joined: Thu Jul 26, 2012 11:10 pm
Full Name: DeMentor

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

Veeam Logoby PTide » Mon Jan 04, 2016 10:12 am

Hi,

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

Thank you.
PTide
Veeam Software
 
Posts: 3019
Liked: 246 times
Joined: Tue May 19, 2015 1:46 pm

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

Veeam Logoby the_mentor » Mon Jan 04, 2016 5:31 pm

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
the_mentor
Enthusiast
 
Posts: 38
Liked: 5 times
Joined: Thu Jul 26, 2012 11:10 pm
Full Name: DeMentor

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

Veeam Logoby v.Eremin » Fri Jan 08, 2016 9:54 am 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests