Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols checkpoint

Take, list and delete checkpoints of a sandbox's disk

A checkpoint is a named snapshot of a sandbox’s disk, taken at once, that pols rollback brings back: take one before a risky step, roll back if it goes wrong. It holds the disk only, not memory or processes; a running sandbox’s disk is taken as a power cut would leave it, so run sync first for files just written. A sandbox keeps at most 10 checkpoints. Their disk space counts as the sandbox’s disk; they are deleted with the sandbox, and forks and templates do not copy them.

Usage

pols checkpoint [flags]
pols checkpoint [command]

Aliases

checkpoint, checkpoints

Subcommands

Command Description
pols checkpoint create Take a checkpoint of a sandbox’s disk
pols checkpoint ls List a sandbox’s checkpoints, oldest first
pols checkpoint rm Delete a checkpoint

Flags

-h, --help   help for checkpoint

pols checkpoint create

A checkpoint is a named snapshot of a sandbox’s disk, taken at once, that pols rollback brings back: take one before a risky step, roll back if it goes wrong. It holds the disk only, not memory or processes; a running sandbox’s disk is taken as a power cut would leave it, so run sync first for files just written. A sandbox keeps at most 10 checkpoints. Their disk space counts as the sandbox’s disk; they are deleted with the sandbox, and forks and templates do not copy them.

NAME is lowercase letters, digits and dashes, starting with a letter.

Usage

pols checkpoint create SANDBOX NAME [flags]

Examples

pols checkpoint create web before-migration

Flags

-h, --help   help for create

pols checkpoint ls

List a sandbox’s checkpoints, oldest first

Usage

pols checkpoint ls SANDBOX [flags]

Flags

-h, --help   help for ls

pols checkpoint rm

Delete a checkpoint

Usage

pols checkpoint rm SANDBOX CHECKPOINT [flags]

Flags

-h, --help   help for rm

The global flags work with this command too.