09-25-2015 09:07 AM
Query exists
VMFolder Contains "vm\Sharepoint\DEV"
OR VMFolder Contains "vm\Sharepoint\PROD"
AND NOT Displayname Equal "SP2010DEV1"
From above I am backing up ALL VM's found in vSphere Folders with the above naming structure.
I would like to however exclude a VM that is named SP2010DEV1 that is found in one of these folders.
My syntax above when tested INCLUDES the one I want excluded. :(
Is this possible? Or can you provide better syntax query thanks.
(Of course I could get the VMWARE Admin to move the VM in question outside of that folder structure.. but want the Backup Admin to be able to do this as a one off if a problem exists with failing 156 backups of this VM.)
Or conversely, can I exclude a specific VM from being quiesced within a NetBackup Policy.? As VSS is the problem the VM fails. The VSS issue is being addressed but taking long time.
Thanks
(Using NetBackup 7.6.1)
Solved! Go to Solution.
09-26-2015 10:11 AM
Is it possible to use parentheses in a VIP query? e.g:
( VMFolder Contains "vm\Sharepoint\DEV" OR VMFolder Contains "vm\Sharepoint\PROD" ) AND ( NOT Displayname Equal "SP2010DEV1" )
09-25-2015 10:09 AM
Maybe rearrange the elements?
NOT Displayname Equal "SP2010DEV1"
AND VMFolder Contains "vm\Sharepoint\DEV"
OR VMFolder Contains "vm\Sharepoint\PROD"
09-25-2015 01:44 PM
Ensure the VM name is exact. you can use "contains" as operator.
09-26-2015 03:16 AM
@Will restore
Tried your option and still VM is included.
@mansoor
VM Name is exact as its taken from the Value selection field which is a choice of VM Displaynames.
(Use Competitor C solution at other site and this is so easy to achieve.)
09-26-2015 10:11 AM
Is it possible to use parentheses in a VIP query? e.g:
( VMFolder Contains "vm\Sharepoint\DEV" OR VMFolder Contains "vm\Sharepoint\PROD" ) AND ( NOT Displayname Equal "SP2010DEV1" )
09-26-2015 10:17 AM
Or... (excuse the pun)... it could be that 'AND' operators have higher precedence and (excuse the second pun) are evaluated first... so this might work:
VMFolder Contains "vm\Sharepoint\DEV"
AND NOT Displayname Equal "SP2010DEV1"
OR VMFolder Contains "vm\Sharepoint\PROD"
AND NOT Displayname Equal "SP2010DEV1"
09-30-2015 02:54 AM
@sdo
SUCCESS in both instances. The paranetheses method of course much easier to use.
Thanks