Restore a checkpoint
restore_checkpointPut this computer back to a saved checkpoint. The entire filesystem and everything installed is replaced by the state it was in then.
THIS DISCARDS WORK. Anything done since that checkpoint — files written, packages installed, commits not pushed anywhere — is gone. Pass keep_current_as to save the current state as its own checkpoint first, which is almost always what you want when you are not certain.
It does NOT delete the checkpoints saved after the one you go back to. They stay listed and restorable, and anything saved from here on branches off the point you returned to — so going back to try a different approach costs nothing but the work not kept.
The computer restarts to do it and is briefly unavailable; any process you left running stops. If it is asleep, the checkpoint is applied the next time it wakes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checkpoint | Yes | Checkpoint id, from list_checkpoints | |
| keep_current_as | No | Save the current state under this name before replacing it |