Restoring Snapshot Images
Restore a snapshotted application image with the Memory Machine CLI utility, mvmcli.
About this task
Note: Because the snapshot image is restored with its original process ID, the original
application instance cannot be running when you restore a image. Exception: You can
clone a snapshot, which uses Linux namespaces to create a running process that does
not conflict with the original instance. See Cloning an Instance with CLI.
Warning: If a snapshot fails to restore properly, the cause could be a
dependency upgrade. See Cannot Restore Snapshots.
Procedure
- Optional: If you don't know the label of the snapshot you want to restore, list the snapshots to find it. See Listing Snapshots.
-
Use the mvmcli command to restore the snapshot image:
$ mvmcli snapshot restore -l|--label label -d|--detached -c|--clone
Where:- label
- is the label of the snapshot to restore.
- -d or --detached
- causes the restored process to detach from the command-line shell. Default is to not detach, so that the terminal shell is owned by the restored application.
- -c or --clone
- causes the restored process to clone the instance by restoring the snapshot to its PID in a different network namespace. See Cloning an Instance with CLI.