Request an invite
Docs menu

osmates snapshot edit

Rename a snapshot, or keep it from automatic deletion.

Usage
osmates snapshot edit [<options>] <machine> <snapshot>

Automatic snapshots beyond the machine's policy go oldest first; a kept one never does.

Arguments

<machine>Required

The machine's name or identifier.

<snapshot>Required

The snapshot's name or identifier.

--name <name>

A new name, which no other snapshot of the machine has.

--keep

Keep the snapshot from automatic deletion.

--no-keep

Keep the snapshot from automatic deletion.

--json

Print machine-readable JSON.

JSON output

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

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

createdAtstring (date-time)Required
discstring (uri)
discControllerboolean
firmwareobject
firmware.sha256stringRequired
firmware.versionstringRequired
frameworkSoundobject
frameworkSound.playsbooleanRequired
frameworkSound.recordsbooleanRequired
frameworkSound.sourceboolean
guestToolsboolean
hardwareobjectRequired
hardware.cpuCountintegerRequired
hardware.diskSizeintegerRequired

At least 0.

hardware.displayobject
hardware.memorySizeintegerRequired

At least 0.

hardware.nestedVirtualizationboolean
hardware.processorobject
hostBuildstring
idstring (uuid)Required
includesMemorybooleanRequired
isCrashConsistentbooleanRequired
isKeptbooleanRequired
namestringRequired
networkPathstring

One of direct, detached, filtered.

originstring or objectRequired

One of manual, or an object that holds one key: agentSession, agent, beforeRevert, schedule, beforeUpdate, beforeDrivers, guest, beforeGuestRevert, codeSession, beforeMacOSUpdate or beforeFirmwareUpdate.

origin.agentSessionobject
origin.agentobject
origin.beforeRevertobject
origin.scheduleobject
origin.beforeUpdateobject
origin.beforeDriversobject
origin.guestobject
origin.beforeGuestRevertobject
origin.codeSessionobject
origin.beforeMacOSUpdateobject
origin.beforeFirmwareUpdateobject
partitionGrowthobject
partitionGrowth.diskSizeintegerRequired

At least 0.

partitionGrowth.failuresintegerRequired
partitionGrowth.problemstring
partitionGrowth.retriesbooleanRequired
rosettaboolean
windowsDriversobject
windowsDrivers.datestring (date-time)Required
windowsDrivers.namestringRequired
windowsDrivers.resultsarray of objectsRequired
windowsDrivers.setstringRequired
windowsDrivers.snapshotstring (uuid)
windowsDrivers.snapshotNamestring
withoutNetworkbooleanRequired

Fields nested deeper are in the schema.

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