osmates snapshot auto
Show or change when a machine is snapshotted by itself.
osmates snapshot auto [<options>] <machine>By default OSMates snapshots a machine's disk before a revert and keeps 5; --every takes snapshots while the machine runs, and keeps as many. Lowering --keep deletes the oldest beyond it at once. The snapshot an agent's session begins with is always taken, and the last 3 are kept. A machine's first start on a new version of OSMates also snapshots its disk first, and before it installs new Windows drivers in a Windows machine, and keeps as many of each.
Arguments
<machine>RequiredThe machine's name or identifier.
--before-revertingSnapshot the machine before each revert.
--no-before-revertingSnapshot the machine before each revert.
--every <every>never, hourly or daily.
One of
never,hourly,daily.--memorySave memory too while the machine runs.
--no-memorySave memory too while the machine runs.
--keep <keep>Automatic snapshots kept of each kind, 1 to 50.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/snapshot/auto.json
beforeRevertingbooleanRequiredincludesMemorybooleanRequiredkeepintegerRequiredschedulestringRequiredOne of
never,hourly,daily.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |