kosa8 rewind
Put a sandbox back to a saved restore point
Usage#
kosa8 rewind SANDBOX
Discards the sandbox as it is now and brings back a checkpoint under the same name, with processes still running from the moment it was saved.
With no --to, this rewinds to the most recent checkpoint. Checkpoints taken after the one you rewind to are dropped, because they describe a future that no longer happened.
The current state is saved first and kept until the checkpoint is running, so a restore that fails (a full disk, say) puts the sandbox back as it was instead of losing it. If the save itself fails nothing is changed; --discard-current skips it.
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--discard-current | bool | do not back up the current state first (for a sandbox that cannot be snapshotted); a failed restore then loses it | — |
--to | string | rewind to this checkpoint id or label (default: the latest) | — |
-y, --yes | bool | skip the confirmation | — |
Example#
kosa8 rewind dev kosa8 rewind dev --to before-upgrade -y