Question

Restoring database instancje (pg, mysql) using cvpysdk in python

  • 10 April 2024
  • 1 reply
  • 23 views

Badge +1

hello :),
I want to restore an instance of my database using Python.
I'm trying to use the cvpysdk library.
I can use:

https://github.com/Commvault/cvpysdk

>>> job = subclient.restore_out_of_place(client, destination_path, paths, overwrite, restore_data_and_acl)

should I use another way?

br
k2


1 reply

Userlevel 5
Badge +12

Hello @AleAle 

Thanks for the great question!
I would recommend using the following for details around Python commands:

https://api.commvault.com/

For example this might be what you are looking for: 
https://api.commvault.com/docs/SP34/api/cv/MySQLDatabases/my-sql-restore#mysql-restore-operations
On the right hand side you can select language and we have a Python section: 

Example: 


Kind regards

Albert Williams

 

Reply