Skip to main content
Answer

VM backup automation

  • April 10, 2025
  • 1 reply
  • 62 views

Forum|alt.badge.img+12

Hi Team,

 

I am trying to do an automation. As part of this, I want to add a VM that I have pulled as a variable via a form to a subclient first (if the subclient content is full, it will clean it and then add the VM) and I want to trigger the Full backup of the relevant subclient. Which Rest API, qcommand, commvault powershell module etc. can I do this better with and which API or commands can I do it with, can you give me some guidance?

Another question is, how can I start the Full backup of a VM that I have pulled as a variable via a form (a VM that I have never backed up before, that Commvault does not know yet)?

Best answer by Albert Williams

Hello ​@0ber0n 

Adding a new VM into a subclient: 
https://api.commvault.com/docs/SP36/api/cv/VirtualizationOperations/update-subclient-virtual-machine-content/

Running a backup through API on a VM: 
https://api.commvault.com/docs/SP36/api/cv/VirtualizationOperations/perform-vm-backup/
 

I hope this answers your questions! 


Kind regards
Albert Williams

1 reply

Forum|alt.badge.img+15

Hello ​@0ber0n 

Adding a new VM into a subclient: 
https://api.commvault.com/docs/SP36/api/cv/VirtualizationOperations/update-subclient-virtual-machine-content/

Running a backup through API on a VM: 
https://api.commvault.com/docs/SP36/api/cv/VirtualizationOperations/perform-vm-backup/
 

I hope this answers your questions! 


Kind regards
Albert Williams