Solved

Script to do bulk VM restores

  • 15 February 2022
  • 4 replies
  • 376 views

Userlevel 1
Badge +5

I am looking at restoring multiple servers at one time (20+). I wanted to see if anyone has accomplished something similar with scripts.

icon

Best answer by Sheri Balzarano 16 February 2022, 20:19

View original

If you have a question or comment, please create a topic

4 replies

Userlevel 7
Badge +23

@ShaneHicks , what method would you prefer to perform this?  You can go to do the restore in the GUI, but click save as script.  Now you’ll have the required files you can run via an execure xml command:

https://documentation.commvault.com/11.25/expert/45276_qoperation_execute.html

Userlevel 1
Badge +5

The issue that I have is simplification. I do have the XML and bat file but the command line would be long with all the field name changes is what I assuming.

Userlevel 1
Badge +4

@ShaneHicks 

 

You can generate a Command Line script from the Commcell Console that you can use to run the restore(s) from command line:

https://documentation.commvault.com/11.24/expert/32451_generating_command_line_script_from_commcell_console_vmware.html

 

To run the restore after you have the CLI script saved/ generated:

https://documentation.commvault.com/11.24/expert/32453_performing_restore_vmware_command_line.html

 

And the parameter details are available below:

https://documentation.commvault.com/11.24/expert/32457_parameters_for_command_line_restores_vmware.html

 

This could be further nested into a user created batch script to parse though a list of arguments for the commands to further automate it if preferred but there is no CV script that will batch multiple VM restores as each restore will require its own arguments.

Userlevel 1
Badge +5

This is exactly what I was needing. Thank you everyone!