volume dump restore
Restores or updates a volume from a dump file. Permissions required:
fc
or restore
on the volume.
Syntax
- CLI
-
maprcli volume dump restore [ -cluster cluster_name ] [-i (read dump from stdin)] [-n (create new volume if it doesn't exist)] [-dumpfile dumpfilename (ignored if -i is used)] [-full <true|false> (perform full volume restore, default:false ] -name volumename
- REST
-
Request Type POST Request URL http[s]://<host>:<port>/rest/volume/dump/restore?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
The cluster on which to run the command. |
dumpfile |
The name of the dumpfile (ignored if -i is
used). |
i |
This option reads the dump file from stdin . |
n |
This option creates a new volume if it doesn't exist. |
full |
Perform either a full volume restore or an incremental volume restore. The default restore is incremental. |
name
|
A volume name, in the form volumename
|
NOTE
In a secure cluster, you must use the
HPE Ezmeral Data Fabric user ID. Using
root
or any other user ID results in the system hanging.Examples
Restore a volume from a full dump file:- CLI
-
maprcli volume dump restore -name volume -dumpfile fulldump1 -full true
- REST
curl -X POST 'https://abc.sj.us:8443/rest/volume/dump/restore?name=volume&dumpfile=fulldump1&full=true' --user <username>:<password>
- CLI
-
maprcli volume dump restore -name volume -dumpfile incrdump1
- REST
curl -X POST 'https://abc.sj.us:8443/rest/volume/dump/restore?name=volume&dumpfile=incrdump1' --user <username>:<password>