Restore a directory from a checkpoint
sh_restoreRoll back a directory to a previous checkpoint by removing files created after the checkpoint. Specify the checkpoint label to revert changes.
Instructions
Mirror a directory back to a previous sh_checkpoint (files created since the checkpoint are removed). This is the rollback for an agent's mistakes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Checkpoint name to restore. | |
| dir | No | Directory to restore into. Defaults to server cwd. |