• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Backing Up and Restoring Data
  5. Intra-AZ Data Backup and Restoration

Intra-AZ Data Backup and Restoration

Scenarios

You can use EVS APIs to create snapshots for EVS disks to back up disk data and use the snapshots to restore EVS disk data.

Procedure

Backing up data

  1. Back up the data of an SAP HANA data or log volume.

POST /v2/{tenant_id}/snapshots

Example request:
POST /v2/2a99c1bade9d48f89bd0332e323d126e/snapshots
{
  "snapshot": {
    "name": "snap-001",
    "description": "Daily backup",
    "volume_id": "2de9eea9-a53d-471c-ac08-6c8ffc5f4578",
    "force": true,
    "metadata": {}
    }
}

Example response:

{
  "snapshot": {
    "status": "creating",
    "size": 10,
    "metadata": {},
    "name": "snap-001",
    "volume_id": "2de9eea9-a53d-471c-ac08-6c8ffc5f4578",
    "created_at": "2017-05-17T03:30:49.807572",
    "description": "Daily backup ",
    "id": "6c24b447-b197-46e1-abdb-271d353381b0",
    "updated_at": null
  } 
 }

Restoring data

Use a snapshot to restore EVS disk data.

GET /v2/{tenant_id}/os-vendor-snapshots/{snapshot_id}/rollback

NOTE:

The data of a newly created EVS disk can be directly restored. Before restoring the data of an existing EVS disk, stop the target ECS and detach the disk from the ECS.

Example:

POST v2/2a99c1bade9d48f89bd0332e323d126e/os-vendor-snapshots/6c24b447-b197-46e1-abdb-271d353381b0/rollback
{       
    "rollback": {           
     "name": "snap-001",          
      "volume_id": "2de9eea9-a53d-471c-ac08-6c8ffc5f4578",       
     }   
}

Related Operations

Table 1 lists related operations. For more information about APIs, see the Elastic Volume Service API Reference.

Table 1 Intra-AZ backup and restoration operations

Task

Description

View EVS disk snapshots.

Perform this operation when you need to view the snapshots that have been created for SAP HANA EVS disks.

View details about EVS disk snapshots.

Perform this operation when you need to view details about the snapshots that have been created for SAP HANA EVS disks.

View details about an EVS disk snapshot.

Perform this operation when you need to view details about a specified snapshot that has been created for an SAP HANA EVS disk.

Delete EVS disk snapshots.

Perform this operation when you need to delete the snapshots that have been created for SAP HANA EVS disks.