bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
103 stars 41 forks source link

scripts/sql /aagFailoverMinder.ps1 - Possible to just refresh the source that has the error and run a Incremental on that source #107

Closed amhaats1 closed 1 year ago

amhaats1 commented 1 year ago

Is there a way this could be modified to just refresh the source that produced the error and run the Incremental backup on that source?

I have been testing this script and just seems to take a very long time to go through refreshing all the sources in the Protection Group and then running a Incremental. We have sometimes 10 plus servers in one Protection Group. I'm thinking also it takes up more storage space if the incremental has to run for the entire Protection Group when its only needed for the source that failed.

bseltz-cohesity commented 1 year ago

Updated. Now it will only refresh the failed source.

amhaats1 commented 1 year ago

Are you able to set the incremental job to run only on the failed source as well?

bseltz-cohesity commented 1 year ago

Yes that's what it does. It only runs the incremental backup for the affected database

amhaats1 commented 1 year ago

Awesome, thank you, it looks good on my end with my tests!