create a GH issut for snapshot management in the UI and cli. snapshots use btrfs and…
Private research annotation
Sign in to add a private research label or note.
- User
create a GH issut for snapshot management in the UI and cli. snapshots use btrfs and docker. we should also be able to snapshot and resture the data and home dir. snapshots can have names. teh data also allows for subdirs to be created and snapshtted individually. there should be a list of available snapshots (with sizes and delete funtion) i want to be able to snapshoz a bix and then create a new bx from that snapshot. research and design
Assistant
Now I have a thorough picture of the current implementation. Let me create a well-structured GitHub issue.
Assistant
Issue created: https://github.com/thieso2/Sandcastle/issues/37
Here's what the issue covers:
Snapshot model — a new DB-backed
Snapshotrecord that tracks up to four layers per snapshot: container (Docker commit), home dir, data dir, and workspace volume. Each layer is optional and has its own stored size.BTRFS integration — three new
BtrfsHelperoperations (snapshot_subvolume,delete_snapshot,restore_subvolume) backed bysudo btrfs subvolume snapshot/delete. Storage layout under$SANDCASTLE_DATA_DIR/snapshots/{user}/{name}/. Graceful fallback to Docker-only on non-BTRFS hosts.Data subdir granularity — when a sandbox has a data mount with multiple BTRFS subvolumes inside, you can snapshot a specific subdir and restore just that subdir without touching the rest.