volume snapshot restorestatus

Displays the progress of the snapshot restore operation, in terms of percentage.

For an overview on the Snapshot Restore functionality, refer to Restoring a Volume From a Snapshot.

To restore a snapshot using the Control System, refer to Restoring Volume Snapshots Using the Control System.

To restore a snapshot, use the volume snapshot restore command.

Syntax

CLI
/opt/mapr/bin/maprcli volume snapshot restorestatus
    [ -cluster <cluster> ]
    [ -volume <volume name> ]
    [ -verbose <true/false> ]
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/volume/snapshot/restorestatus[?<parameters>] 

Parameters

Parameter Description
cluster The cluster on which to run the command. This parameter is not mandatory. If not specified, the current cluster is used by default.
volume The name of the volume that is being restored from a snapshot.
verbose Displays container statistics in addition to percentage.

Examples

CLI

The following example command displays the status of the snapshot restore operation on a volume named vol2. See the example in volume snapshot restore for the command that triggered the snapshot restore operation.


/opt/mapr/bin/maprcli volume snapshot restorestatus -volume vol2 -json
 {
  "timestamp":1549970683260,
  "timeofday":"2019-02-12 11:24:43.260 GMT+0000 AM",
  "status":"OK",
  "total":1,
  "data":[
          {
            "targetsnapshot":"s3",
             "progress":"100%"
           }
          ]
 }
                  
REST
curl -X GET 'https://server.sj.us:8443/rest/volume/snapshot/restorestatus?volume=vol2' --user <username>:<password>

The following command displays the container statistics of volume vol2 using the verbose flag.

CLI
/opt/mapr/bin/maprcli volume snapshot restorestatus -volume vol2 -verbose true -json
 {
  "timestamp":1549970690705,
  "timeofday":"2019-02-12 11:24:50.705 GMT+0000 AM",
  "status":"OK",
  "total":1,
  "data":[
           {
             "targetsnapshot":"s3",
             "progress":"100%",
             "numcontainerstotal":6,
             "numcontainersinprogress":0,
             "numcontainerssuccess":6,
             "numcontainersinretrywait":0
           }
        ]
 }
REST
# curl -X GET 'https://abc.sj.us:8443/rest/volume/snapshot/restorestatus?volume=vol2&verbose=true' --user <username>:<password>