![]() |
Use the gui-snapshot-create console command to create a snapshot from the command line. The structure of the command is:
gui-snapshot-create options description
The description can be any string value and does not need to be quoted. If not specified, the description has the default value Restore Point through CLI.
The following options are available for this command:
--version: Displays the command version that is equal to the GUI version. Usually, the GUI version matches ipcs-version.
--help: Displays detailed information about the command, possible arguments, and a few examples.
--debug: Sends the output of debug logs to stdout when executing the command.
--quiet: Suppresses all output. If both the quiet option and debug option are specified, the quiet option takes precedence.
When the command is run, an exit code is returned. Any relevant details for a failure are passed to stderr. The following are examples of the returned exit codes:
0 – Completed successfully.
1 – Invalid command syntax.
2 – Snapshot creation partially successful. This exit code occurs when a snapshot was created successfully, but could not be uploaded to one or more snapshot servers.
3 – Snapshot creation failed. This exit code occurs if the snapshot creation fails.
1000 – An unknown error has occurred.
A few sample commands with descriptions are listed here:
gui-snapshot-create: Creates a new snapshot with the default description Restore Point via CLI.
gui-snapshot-create --quiet This is a test snapshot: Creates a new snapshot with the description This is a test snapshot. The system does not send any output to stdout or stderr.