Once a backup has been completed the data can be restored. First the Recovery Point ID must be identified and then the restore request made.
If a restore is successfully started the response will contain a Job resource.
List Repository Backups (maximum five
records)
curl --insecure --cookie demosession "https://demomaster/API/7.1/master/RecoveryPointMetaDataAggregator/objects /RecoveryPoints?offset=0&count=5"
List Repository Backups
Response
{ "pageInfo": { "count": 1, "end": true, "offset": 0, "totalCount": 1 }, "recoveryPoint": [ { "applicationAwareBackup": false, "applicationMetadata": { "dataoriginos": "eOS_WINDOWS" }, "applicationNode": { "id": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]", "type": "OSHost" }, "browsable": true, "captureDate": "2020-05-11T15:20:12Z", "dataOriginNode": { "id": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]", "type": "OSHost" }, "dataSourceNode": { "id": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]", "type": "OSHost" }, "dataType": "eDATA_FILESYSTEM", "dataflow": { "dataOriginInstanceId": "167", "dataSourceInstanceId": "167", "id": "da2afe41-a936-4879-8cba-ed37aa421b26", "moverType": "eMOVER_BATCH", "name": "demodataflow", "storageInstanceId": "166", "version": 1 }, "expiryDate": "2020-11-13T15:20:12Z", "friendlyName": "File System Backup", "hadProblems": false, "id": "RepositoryHP@00-25FAAB-3B94CF-459595-78584C[1-1-8D]/{4faa5274-3e89-46bb-944a-75cbae59a162}", "instances": [ { "logicalId": "{6b50400d-80e9-4073-8430-9e4ab321f82f}", "storeId": "{35701081-28d0-44f8-94ad-87f3a1cbf509}" } ], "jobId": "{2d6baeba-ac32-4c53-b415-ad35f10e4eaf}", "logicalId": "{4faa5274-3e89-46bb-944a-75cbae59a162}", "newDataSize": "0", "policy": { "id": "141eb1403015408aa3e6a77e2ae1ab22", "name": "demopolicy", "operation": { "id": "1", "name": "Backup", "type": "eOPERATION_BACKUP" }, "version": 2 }, "rbacOwner": { "id": "4294967297", "type": "eRESOURCE" }, "sessionId": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]#1589210408587-3592-0", "size": "0", "state": { "locked": false, "mountState": "eNOT_MOUNTED" }, "storageNode": { "id": "RepositoryHP@00-25FAAB-3B94CF-459595-78584C[1-1-8D]", "type": "HBBRepository" }, "systemTags": [ ], "userTags": [ ] } ] }
Restore to alternate
location
curl --insecure --cookie demosession "https://demomaster/API/7.1/master/RecoveryHandler/objects/RecoveryPoints/ RepositoryHP@00-25FAAB-3B94CF-459595-78584C%5B1-1-8D%5D%2F%7B4faa5274- 3e89-46bb-944a-75cbae59a162%7D/actions/Restore/invoke" --data @restore.json --header "Content-Type: application/json" --request PUT
Restore to alternate location
Response
{ "handlerInfo": { "class": "Jobs", "handler": "JobStatusHandler", "instance": "{5ad959cf-e9fb-405b-b9e5-01ec01195318}", "machine": "master", "url": "master/JobStatusHandler/objects/Jobs/{5ad959cf-e9fb-405b-b9e5-01ec01195318}" }, "id": "{5ad959cf-e9fb-405b-b9e5-01ec01195318}" }