Question

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

  • 10 April 2024
  • 3 replies
  • 29 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


3 replies

Badge +1

thx, I handled with cvpysdk.

 

br

K2

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

 

Userlevel 5
Badge +12

Hello @AleAle 

That’s good news you have got it working.

Can you please mark the thread as answered if there are no further questions.

 

Kind regards
Albert Williams

Reply