Skip to main content
Backups capture the state of a directory inside your sandbox at a specific moment. Use them before risky operations, deployments, or as part of a CI pipeline.

Create a backup

Arguments:
  • <sandbox> — target sandbox
  • <directory> — absolute path to the directory to back up
Options:
  • --description, -d — optional label for the backup
  • --ttl, -t — how long to keep the backup (e.g. 10m, 2h, 7d). Default: 3d

SDK

List backups

Output includes backup ID, directory, description, and expiry time.

SDK

Restore a backup

This replaces the backed-up directory with the snapshot content.
Restoring overwrites the current state of the directory. Make sure to back up first if you want to preserve current changes.

SDK

TTL reference

Backups expire automatically after their TTL — they are not permanent storage.

Example: pre-deployment workflow

API