Hi All,
I am having some difficulty with Managing some settings via Powershell for a VMware Backup Job.
My Backup Job contains a VM Folder that targets all machines in this folder.
I have been able to configured the VSS Options (Disable VSS Processing) for this Object within the backup with Powershell.
The Difficulty i'm having is to Add a New Object of Type TAG which will Enable VSS Processing with specific settings.
Any Help will be appreciated.
-
- Influencer
- Posts: 17
- Liked: 1 time
- Joined: Nov 10, 2016 9:58 pm
- Full Name: Craig Connoll
- Contact:
-
- Product Manager
- Posts: 14844
- Liked: 3086 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Powershell command to Manage VSS (Application Aware) Options for Backup Job
Hello,
just to clarify: you have a backup job that points to a VCenter folder. To that job, you like to add more VMs by VMware tag.
Question: the "OR" or the "AND" tag?
Is it correct that it should look like screenshot this in the end?
For others to be able to help you, it would be useful if you could post the existing code.
Best regards,
Hannes
PS: I moved your post to the PowerShell forum
just to clarify: you have a backup job that points to a VCenter folder. To that job, you like to add more VMs by VMware tag.
Question: the "OR" or the "AND" tag?
Is it correct that it should look like screenshot this in the end?
For others to be able to help you, it would be useful if you could post the existing code.
Best regards,
Hannes
PS: I moved your post to the PowerShell forum
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Powershell command to Manage VSS (Application Aware) Options for Backup Job
Hi Craig,
Is this what you are looking for?
Thanks,
Oleg
Is this what you are looking for?
Code: Select all
$job = Get-VBRJob -Name 'Backup Job'
$tag = Find-VBRViEntity -Server servername -Name 'TagName' -Tags
Add-VBRViJobObject -Job $job -Entities $tag
Oleg
-
- Influencer
- Posts: 18
- Liked: 5 times
- Joined: Nov 30, 2020 11:29 am
- Contact:
Re: Powershell command to Manage VSS (Application Aware) Options for Backup Job
Mayhaps this topic will help you? VSS Options and Credentials for child objects
To echo what's written there:
To echo what's written there:
Code: Select all
$job = Get-VBRJob -Name <Job_Name>
$vm = Get-VBRViEntity -Name <VM_Name>
Add-VBRViJobObject -Job $job -Entities $vm
$newoij = Get-VBRJobObject -Job $Job -Name $vm.Name
$newoij.Info.Type = [Veeam.Backup.Model.CDbObjectInJobInfo+EType]::VssChild
$newoij.VssOptions.Enabled = $false
Set-VBRJobObjectVssOptions -Object $newoij -Options $newoij.VssOptions
Who is online
Users browsing this forum: aruns and 10 guests