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

pols rollback

Roll a sandbox's disk back to a checkpoint, discarding everything newer

Discard every change to the sandbox’s disk since the checkpoint, and the checkpoints taken after it; the checkpoint itself is kept. The sandbox’s users become the ones it had then. A running sandbox is shut down, rolled back and booted again, so the processes running in it stop; a stopped one is rolled back and stays stopped. Refused while a fork or template made from the sandbox after the checkpoint exists, or when the sandbox was resized since.

Usage

pols rollback SANDBOX CHECKPOINT [flags]

Examples

pols rollback web before-migration
pols rollback sbx_3k9x2m1q8zt4 ckp_8f2k1m9q4z7x --no-wait

Flags

-h, --help                    help for rollback
    --no-wait                 return at once instead of waiting for the sandbox to get there
    --wait-timeout duration   how long to wait (default 5m0s)

The global flags work with this command too.