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?
-
- Enthusiast
- Posts: 48
- Liked: 8 times
- Joined: Jul 26, 2012 11:10 pm
- Full Name: DeMentor
- Contact:
-
- 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
Hi,
Please try $(Get-VBRJob -Name "$VBRJobName").BackupTargetOptions
Thank you.
Please try $(Get-VBRJob -Name "$VBRJobName").BackupTargetOptions
Thank you.
-
- 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
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
This pointed me in the right direction.
I found this to output the exact Full backup days.
$($(Get-VBRJob -Name "$VBRJobName").BackupTargetOptions).FullBackupDays
-DeMentor
-
- 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
Try the following one-liner. It lists backup jobs, along with used full backup mode, and full backup days.
Thanks.
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
Who is online
Users browsing this forum: Majestic-12 [Bot] and 8 guests