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> ] [ -dumpfile <dumpfilename> ] [ -i ] [ -n ] -name <volume name>
- REST
-
None.
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. |
name
|
A volume name, in the form volumename
|
NOTE: In a secure cluster, you must use the MapR 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
- CLI
-
maprcli volume dump restore -name volume -dumpfile incrdump1