Hi Team,
We are trying to perform Restore on backups which are available in Backups > History > Backups Tab > Actions > Restore
The approach what we are following is:
- We are having our own
BackupTypeProvider
which will allows us to take backups by using our plugin. - Now with in that
BackupTypeProvider
added below code to use Restore functionality
public BackupRestoreProvider getRestoreProvider() {
if(this.restoreProvider == null) {
this.restoreProvider = new SvtRestoreProvider(getPlugin(), getMorpheus());
}
return this.restoreProvider;
}
- Then, with in
SvtRestoreProvider
class, we are implementingBackupRestoreProvider
- and triggering
restoreBackup()
method
public ServiceResponse<BackupRestoreResponse>
restoreBackup(BackupRestore backupRestoreModel, BackupResult backupResultModel, Backup backupModel, Map opts)
Expectation:
When we click Restore submit button we should be able to call our own Rest service.
For now when i click on Submit, restoreBackup method is not being called.
Questions:
- Are we in right direction ? anything we are missing ?
- Is there a way to add extra/custom Restore options ?
- I have seen few plugin samples, like Rubrik, Veam and commvault but they are following the below approach
Go to Backups > Integrations > Select Rubrik
Then add a Backup-Restore Rubrik plugin
do we have to follow the same pattern ? or is there a direct way integrate our Restore options with out integrating.
- Currently I could only see, New Instance Restore option. Shall we expect few more restore options? if yes how do we get it
Thanks
Ramkee Mukuru