cpmdex syntax

This topic contains syntax for the cpmdex command.

The syntax for the cpmdex command is as follows:
cpmdex -a <archive_path> -m <datastore_path> -t <transfer_path>
The cpmdex command uses the following parameters:
Options Description
-a <archive_path> Required. The absolute file path to the directory containing the archived snapshot.
-m <datastore_path> Required. The absolute file path to the directory where the snapshot should be restored.

The end of this path should match the value passed to the Dgraph process when it is started.

-t <transfer_path> The file path to a directory to which the snapshot should be moved.

This option uses a move operation, instead of a copy, to restore the files to the data store.

You may want to use this option if the backup has already been copied from the archive to the local file system and you want to save considerable I/O bandwidth.

-h The help for this command.
In this example, the cpmdex command copies the snapshot from the backup\2012-01-20 directory and restores it to the apps\myapp\my_data_files directory on Windows:
cpmdex -a c:\backup\2012-01-20 -m c:\apps\myapp\my_data_files