Hi,
I have some SAP-Hana plugin backup policies. I need to disable them during maintenance.
But i only wan't to disable the one who is enabled. So when i enable them, and can just enable the once i disabled.
Anyone found a way to se if the backup policy is enabled or not ?
-
- Service Provider
- Posts: 179
- Liked: 27 times
- Joined: Feb 13, 2017 2:56 pm
- Full Name: Henrik Grevelund
- Contact:
Get-VBRApplicationBackupJob enabled or disabled, that is the question
Have nice day,
Henrik
Henrik
-
- Veeam Software
- Posts: 2597
- Liked: 606 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Get-VBRApplicationBackupJob enabled or disabled, that is the question
Hi @Henrik.Grevelund,
Regrettably seems the supported cmdlet Get-VBRApplicationBackupJob doesn't have the enabled property present (or I'm blind and cannot find it), so unfortunately we go to unsupported methods to find it.
Fetch the jobs as you normally would with Get-VBRApplicationBackupJob, then use the following:
This unsupported .NET Reflection will find the job by ID and return a full CJob object, which has the IsScheduleEnabled property that can be used to see if job is set to Enabled or Disabled (True if Enabled, False if Disabled)
It's a good feature request I think, will handle registering a formal requst.
Regrettably seems the supported cmdlet Get-VBRApplicationBackupJob doesn't have the enabled property present (or I'm blind and cannot find it), so unfortunately we go to unsupported methods to find it.
Fetch the jobs as you normally would with Get-VBRApplicationBackupJob, then use the following:
Code: Select all
[Veeam.Backup.Core.CBackupJob]::Find($job.id)
It's a good feature request I think, will handle registering a formal requst.
David Domask | Product Management: Principal Analyst
-
- Service Provider
- Posts: 179
- Liked: 27 times
- Joined: Feb 13, 2017 2:56 pm
- Full Name: Henrik Grevelund
- Contact:
Re: Get-VBRApplicationBackupJob enabled or disabled, that is the question
Hi David,
Thanks, i will try this.
And thanks for the FR registration
Thanks, i will try this.
And thanks for the FR registration
Have nice day,
Henrik
Henrik
Who is online
Users browsing this forum: No registered users and 7 guests