Skip to content
Development
Command

/backup

Push local memory files to your GitHub backup repository.

From plugin
13219 skills19 commands9 hooks
shell
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-code

Ships with claude-memory-engine. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/backup

Context preview

What this command does when you run it.

Push local memory files to your GitHub backup repository.

Command definition

backup.md

/backup -- Push Memory to GitHub

Push local memory files to your GitHub backup repository.

Usage

bash ~/.claude/scripts/hooks/memory-backup.sh push

What it does

1. **Scan all projects** -- find every `~/.claude/projects/*/memory/` directory 2. **Copy to backup repo** -- mirror all `.md` files into the backup repo 3. **Commit** -- stage and commit changes 4. **Push** -- push to GitHub

Notes

  • The SessionEnd hook auto-commits locally after every conversation; this command handles the push
  • v1.6: push now auto-detects all project directories instead of hardcoding paths
  • For bidirectional sync (push + pull), use `/sync` instead
  • For pulling from GitHub, use `/recover`
Read it on GitHub ↗
Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Get the whole plugin, auto-invoked
Stats
132
Stars
0
Views
27
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
2mo ago
Last commit
4mo ago
Created

Repo: HelloRuru/claude-memory-engine