bhatti volume restore
Restore a volume from a backup.
Synopsis
Section titled “Synopsis”bhatti volume restore <volume-name> —backup-id <id>
Description
Section titled “Description”Downloads the backup from S3, decompresses it, and overwrites the volume’s ext4 file with the backup’s contents. Existing data on the volume is replaced — there’s no merge.
The volume must be detached before restoring. The server returns 409 Conflict if any sandbox has it mounted.
The backup ID comes from bhatti volume backup-list. The restore is in-place: the volume keeps its name and any pending attachments resolve once it’s done.
Examples
Section titled “Examples”# Find a backup, restore from itbhatti stop devbhatti volume backup-list workspacebhatti volume restore workspace --backup-id bk_a1b2c3d4bhatti start devvolume restored from backup bk_a1b2c3d4# Volume still attachedbhatti volume restore workspace --backup-id bk_a1b2c3d4409 Conflict: volume is attached to a sandbox — detach before restoringOptions
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--backup-id <string> | (required) | The backup to restore from. Get one from backup-list. |
See Global flags for --url, --token, --json, --timing, --data-dir.
See also
Section titled “See also”bhatti volume backup-list— find a backup to restore frombhatti volume clone— make a clone before restoring, just in case- API:
POST /volumes/:name/backups/restore