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.
/opt/mapr/bin/maprcli volume snapshot restorestatus
[ -cluster <cluster> ]
[ -volume <volume name> ]
[ -verbose <true/false> ]
| Request Type | GET |
| Request URL | |
| 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. |
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%"
}
]
}
curl -k -X GET 'https://abc.sj.us:8443/rest/volume/snapshot/restorestatus?volume=vol2' --user mapr:mapr
The following command displays the container statistics of volume vol2 using the
verbose flag.
/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
}
]
}
# curl -k -X GET 'https://abc.sj.us:8443/rest/volume/snapshot/restorestatus?volume=vol2&verbose=true' --user mapr:mapr