instabox-snapshots
Use when the user wants to save an instabox box's state and load it later — "save a snapshot", "checkpoint this box", "restore/load from a snapshot", "start a new box from my setup", "clone this box". Covers instabox snapshot save/ls/files/rm, create --snapshot and fork.
- License 许可
- MIT
- 所属仓库
- kipyin/kstack
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- instabox-snapshots
- metadata
- { "installed-by": "instabox" }
- description
- Use when the user wants to save an instabox box's state and load it later — "save a snapshot", "checkpoint this box", "restore/load from a snapshot", "start a new box from my setup", "clone this box". Covers instabox snapshot save/ls/files/rm, create --snapshot and fork.
03 SKILL.md 正文
instabox snapshots: save and load
A snapshot is a saved copy of a box's disks (root disk and /data), private to the account. Load it by creating a new box from it. Snapshots hold disks only: running processes and memory are not saved (use instabox suspend for that).
Save
instabox snapshot save work --name work-ready --description "deps installed, repo cloned"
- A running box is saved live, without stopping it: the snapshot is
pendingininstabox snapshot lsuntil its disks finish uploading (--no-waitreturns at once). - Do not stop the box first:
stopends every process in it. A live snapshot is like a clean power cut: what is on disk is kept, what programs hold only in memory is not. Only if the server answers that this box must be stopped, or if a program must write its data to disk first (a database mid-write), runinstabox stop work, save, theninstabox start work. --root-onlysaves just the root disk (smaller;/datais not included).- A disk snapshot includes credential files written by applications, tool sign-ins, and historical Vault files; a suspend snapshot can also retain credentials in process memory. Org Secrets reach the box only as placeholders, so a snapshot holds none of their values, but anything an app or a person wrote to disk is kept. Do not describe snapshots as credential-free. Review copied credentials and rotate upstream when required before sharing or retaining them.
- Pick names that say what is inside (
node20-playwright,api-db-seeded); names must be unique among your snapshots.
Load
instabox snapshot ls # your snapshots: id, name, root/data size, source
instabox create --name work2 --snapshot work-ready
instabox exec work2 -- ls /data/home # same root disk and /data as when saved
--snapshot takes a snapshot name or its sn_... id.
Look inside without starting anything
instabox snapshot files work-ready /etc # list a directory of the root disk
instabox snapshot files work-ready /etc/os-release # print a text file
This reads the snapshot's root disk only; /data (and HOME) are not browsable here. To check files under /data, load the snapshot into a box and use instabox exec.
Copy a box
instabox fork does it in one command: it saves a snapshot of the box, creates the new box (or --count up to 5, named NAME-1 to NAME-N) from it with the same template and size, waits until it runs, then deletes the snapshot (also on error or Ctrl-C) unless --keep-snapshot. It is the same snapshot save + create, so it takes about as long; the source box is not changed.
instabox fork work --name work2
instabox fork work --name try --count 3 --json # try-1, try-2, try-3
The same by hand, when you want the snapshot's name or the copy's create flags (--secrets, --no-vault, --auto-suspend):
instabox snapshot save work --name work-copy
instabox create --name work2 --snapshot work-copy
instabox snapshot rm --yes work-copy # optional; work2 is not affected
The copy gets a new sandbox identity and the Secret selection in its creation request. Without --secrets it keeps the existing Vault behavior and does not enroll in org Secrets; it does not inherit the source's selection. To give it neither store's credentials, use:
instabox create --name work2 --snapshot work-copy --no-vault --secrets none
To give the copy API credentials, name them with --secrets NAME,NAME. Placeholders copied from the source box do not work for the new one. New selections do not erase credentials that apps or people already wrote into files on the copied disks; review those before sharing the snapshot or the box.
Clean up
instabox snapshot rm --yes work-ready
Snapshots count toward the account's snapshot and storage limits (instabox usage). Delete ones you no longer need.
Typical agent loop
instabox create --name job --snapshot <base>(it pauses by itself after 30 idle minutes)- Work with
instabox exec job -- ... - When the setup is worth keeping:
instabox snapshot save job --name <base>-v2(no need to stop it) instabox rm --yes jobwhen done.
04 同仓库更多 Skills
solvency-agent-playbook
solvency playbook: use at the start of any solvency/ work — develop, debug, test, refactor, or query. Covers edits under solvency/, solvency pytest, Postgres reads/writes for solvency tables, and solvency diffs.
pr-debrief
给 PR 出一份业务验收 debrief:在做什么 / 做对了吗 / 真人要验什么,人话,贴到 Gitee。
issue-title-convention
Lint and autofix open Gitee issue titles to the four team prefixes.
issue-summary
Add a Chinese nav summary + HITL checklist to a ready-for-agent Gitee issue.
gitee-pr-workflow
End-to-end workflow for landing a change on both Gitee and GitHub using the `gitee` Rust CLI. Delegates commit + PR creation to `gitee-pr-submit` (plain-language body, HITL verification, `Linked: #IKxxxx`), then approves it, squash-merges with `--no-close-issue`, adds an evidence comment and closes the linked issue, syncs Gitee main back to local, pushes local main to GitHub, then watches GitHub Actions Build py_total and replaces artifacts/py_total.exe. Post-land CI failures use a hotfix PR; never push new commits directly to main. Trigger: "gitee pr workflow", "commit and pr to gitee", "land changes on gitee and github", "create gitee pr", "approve and merge gitee pr", "watch py_total", "download py_total artifact".
gitee-pr-submit
Commit local changes in logical chunks, push a feature branch to Gitee, and open a PR whose body is plain language: what we did, what we verified, with human-in-the-loop (HITL) verification called out explicitly. Links the related issue with `#IKxxxx` in the body (the # is mandatory; without it Gitee neither links nor autocloses the issue). Submit only: do not approve, merge, or sync here. Trigger: "submit pr", "提交 PR", "create gitee pr", "开个 PR", "commit and pr", "提交评审".