Request an invite
Docs menu

osmates snapshot auto

Show or change when a machine is snapshotted by itself.

Usage
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>Required

The machine's name or identifier.

--before-reverting

Snapshot the machine before each revert.

--no-before-reverting

Snapshot the machine before each revert.

--every <every>

never, hourly or daily.

One of never, hourly, daily.

--memory

Save memory too while the machine runs.

--no-memory

Save memory too while the machine runs.

--keep <keep>

Automatic snapshots kept of each kind, 1 to 50.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/snapshot/auto.json

beforeRevertingbooleanRequired
includesMemorybooleanRequired
keepintegerRequired
schedulestringRequired

One of never, hourly, daily.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page