backup-setup

Featured

Set up, check, or restore local claude-mem database snapshots. Use when the user says "set up backups", "back up my memories", "backup status", or "restore my database".

AI & Automation 118,170 stars 10270 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 96/100

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

Skill Content

# Backups (local snapshots) The installed worker snapshots `~/.claude-mem/claude-mem.db` on a schedule (`VACUUM INTO`, consistent while sessions run) and keeps the newest N under `~/.claude-mem/backups/auto/`. Each snapshot is one standalone SQLite file. Snapshots stay on this machine. Preserve every unrelated setting and keep `~/.claude-mem/settings.json` mode `0600`. Never print the file's contents: it holds credentials. ## Routing Based on `$ARGUMENTS`: - `setup` or empty: **1. Check status**, then **2. Enable snapshots** - `restore`: **3. Restore** - `status`: **1. Check status** only ## 1. Check status ```bash npx claude-mem backup status ``` - Snapshot details printed: backups run. Report the last snapshot time, the snapshot count and any last error; stop unless the user asked for a change or a restore. - "Automatic backups are not enabled": continue to step 2 if setting up. - A "Last restore" line reports the outcome of the most recent restore. - "Worker is not running": start it with `npx claude-mem start` and retry. - "Unknown command: backup" or "Backup status failed: HTTP 404": this claude-mem (CLI or running worker) has no backup support yet, so the worker would ignore the backup settings. Stop. Tell the user that backups are not available in their installed version and that `npx claude-mem update` brings them once a release includes them. Do not write the settings in step 2, and never say backups are on. - Any other failure ("Backup status ...

Details

Author
thedotmack
Repository
thedotmack/claude-mem
Created
1 years ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category