Skip to main content

My colleague is using Commvault API in python to automate restores 

We would like to know how can we use the API to switch off one backup policy and to enable new or another one? And how to run a full backup after switching over backup policy?

Alternatively how in a given policy delete and add a new instance for backups?

Unfortunately, the following documentation is not detailed enough to achieve that? https://api.commvault.com/docs/SP32/api/cv/ScheduleandSchedulePolicyOperations/add-agent-to-schedule-policy/

Thank you,

Hi @adam.tomza,

 

I just want to clarify a bit about your requests here so I can make sure I’m answering the right questions.  If I understand correctly, you are looking to do the following via API:

 

  1. Migrate an existing subclient from one Storage Policy to another.
  2. After setting the new Storage Policy, trigger a full backup.

 

Is that correct?  Lastly, I am not entirely sure what you mean by:

 

“how in a given policy delete and add a new instance for backups?”

 

Can you please clarify what you’re looking to do here?  What do you mean by ‘add a new instance for backups’?

 

-Brian Bruno


Hi @Brian Bruno 

By ‘backup instance’ I meant a subclient. In a particular Schedule Policy we have subclient x and we would like to change it to subclient y and run a full backup of such a policy.

Thanks,

-Adam


Reply