restore-backup

Solid

Hands-on disaster-recovery agent for Open Walnut S3 backups. Paste into your OWN Claude Code session — it finds your backup in S3, restores it to a fresh folder, verifies every file and database, and helps you adopt it as the live data folder. Works on a brand-new machine with nothing installed. Use when a user lost their Walnut data, got a new machine, or wants to verify their backups actually restore.

AI & Automation 32 stars 8 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
51
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Restore Open Walnut from an S3 backup **Goal:** get the user's Walnut data back, verified, with zero chance of making things worse. You are doing the restore *for* the user. Be **proactive**: run the commands yourself, verify integrity yourself, and only ask when the answer is genuinely theirs (which bucket, which restore point, whether to adopt). ## Two safety rules (never break these) 1. **Restore NEVER overwrites live data.** Always download into a fresh folder first, verify it, and only then (with the user's explicit go-ahead) swap it into place. If `~/.open-walnut` still exists, treat it as precious even if the user says it's broken: rename it aside, never delete it. 2. **Never delete anything in the bucket.** The bucket is the last copy. Read-only access is all a restore needs. ## What's in the bucket (so you can reason about it) Under the configured prefix (default `walnut`): - `<prefix>/backup-manifest.json` — the file list of the last complete backup. Written LAST, so if it exists, that backup finished. With bucket versioning on, each old version of this one key is an earlier restore point. - `<prefix>/data/<relative path>` — every backed-up file, mirroring the data folder layout. - `<prefix>/data/.sqlite-snapshots/<relative path>` — safe online snapshots of the SQLite databases (sessions, tasks, usage). The restore command puts these back at their real paths automatically. Search/index databases are absent on purpose: Walnut rebuilds them...

Details

Author
EvanZhang008
Repository
EvanZhang008/open-walnut
Created
6 months ago
Last Updated
4 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category