-
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.
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?
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: 6617
- Liked: 815 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.
-
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
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
-
veremin
- Product Manager
- Posts: 20753
- Liked: 2416 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-
pirx
- Veteran
- Posts: 688
- Liked: 102 times
- Joined: Dec 20, 2015 6:24 pm
- Contact:
Re: Looking for a way to get the full backup day of all Jobs.
I'm struggling with the output.
From what I can see in the GUI, "Full Backup Days" is the setting for "Active full backup". The right value for synthetic backup is "TransformFullToSyntethic"?Name Active Full Enabled Synthetic Full Enabled Full Backup Days
---- ------------------- ---------------------- ----------------
Job-xxxx False True Saturday
-
pirx
- Veteran
- Posts: 688
- Liked: 102 times
- Joined: Dec 20, 2015 6:24 pm
- Contact:
Re: Looking for a way to get the full backup day of all Jobs.
errr, I mean TransformToSyntethicDays
Who is online
Users browsing this forum: No registered users and 53 guests