Hi there, not sure if anyone has seen the same issue before. Here is what we do:
We need to suspend backup for one Sybase database because the database needs to execute its own house keeping like re-index etc. We are trying to automate this using Commvault API:
- We receive the request to suspend a database(db1) from instance(asset1).
- Our program will loop through the asset1 and see where db1 is and found it is in subclient “sub1”.
- We will then create a “dynamic1” subclient
- Delete the “db1” from “sub1” subclient.
- Add “db1” to “dynamic1” subclient
Now the house keeping is done and we need to resume the backup of db1:
- We received the resume request
- Loop through Commvault server where db1 is through API
- We found db1 is in default subclient alreay
Now the adhoc Full backUp is called immediately because the house keeping has change the database structure and we don’t have a base-line
- Adhoc backup request is received
- Loop through asset1 and see where db1 is and found it is in subclient “default”
- Create a “dynamic2” subclient
- Delete “db1” from “default” subclient
- Add “db1” to “dynamic2” <--------------Fails here because Commvault think “db1” is still in “dynamic1” subclient
My question is why do we get a failure here because we sent API calls to ask Commvault server and got response the db1 database is in “default” subclient? And we have successfully delete the database from “default” subclient.