![]() |
With the gui-snapshot—restore console command, you can restore a snapshot from the command line. The general structure of the command is:
gui-snapshot-restore options file
Use the absolute or relative path for a valid snapshot file.
Use one of the following options:
--version: Displays the command version, which is equal to the GUI version. The GUI version usually matches the ipcs-version.
--help: Displays detailed information about the command, possible arguments, and a few examples.
--debug: Sends debug logs to stdout when running the command.
--quiet: Suppresses all output. If both the quiet option and debug option are specified, the quiet option takes precedence.
After the command runs, the system returns an exit code. Any relevant details for a failure are passed to stderr. A list of possible returned exit codes follows:
0 – Completed successfully.
1 – Invalid command syntax.
2 – Snapshot creation partially successful. This exit code occurs when a snapshot is created successfully, but cannot be uploaded to one or more snapshot servers.
3 – Snapshot creation failed. This exit code occurs if the snapshot creation failed.
1000 – An unknown error occurred.
A few sample commands with descriptions are listed here:
gui-snapshot-restore /home/ipcs/snapshot folder/snapshot.zip: Restores from a snapshot file named snapshot.zip in /home/ipcs/snapshot folder/.
gui-snapshot-restore ../snapshots/snapshot-1.2.3.zip: Restores from a snapshot file named snapshot-1.2.3.zip in the sibling of the parent directory, named snapshots.