Skip to main content
Question

switching backup policies through API and running full backup


Forum|alt.badge.img+1

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,

2 replies

Forum|alt.badge.img+13
  • Vaulter
  • 166 replies
  • August 7, 2024

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


Forum|alt.badge.img+1
  • Author
  • Bit
  • 2 replies
  • August 7, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings