memory-backup
Skill92 starsChanged 8 months agoApache-2.0View on GitHub
Creates scheduled tar.gz backups of agent memory or chat history, lists existing backup snapshots, and restores from a previous backup point with automatic retention policy. Use when the user asks to back up, export, save, snapshot, or restore chat history, conversation logs, agent memory, or session data.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- AhmiDarrow/RemedyAItheir own version, first seen Sep 14, 2026
- kevintsai1202/deep-memorytheir own version, first seen Aug 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kevintsai1202/deep-memory★ 40same name
- AhmiDarrow/RemedyAI★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- metaskillbaseSkill
- mac-brightnessSkill
- mac_ejectSkill
- mac_ipSkill
- mac_screenshotSkill
- mac-volumeSkill
- strategy-backtestSkill
- mac-activateSkill
- mac_calculatorSkill
- mac_calendarSkill
- mac-clipboardSkill
- mac_close_appSkill
- mac-dark-modeSkill
- mac_dictionarySkill
- mac_empty_trashSkill
- mac_file_copySkill
- mac_file_deleteSkill
- mac_file_moveSkill
- mac-finderSkill
- mac_input_sourceSkill
- mac_lockSkill
- mac-mailSkill
- mac_mkdirSkill
- mac_musicSkill
- mac_notifySkill
- mac_open_appSkill
- mac_preferencesSkill
- mac_printSkill
- mac_restartSkill
- mac_shutdownSkill
- mac_spotlightSkill
- mac-terminalSkill
The file
Files
memory-backup — Agent Memory Backup & Restore
Creates compressed backups of agent memory/chat history and restores from previous snapshots. Supports configurable retention policies and scheduled execution via cron.
Usage
# Back up agent memory (default source: ~/.agent-memory)
python3 memory_backup.py backup
# Back up a custom source with retention of 5 snapshots
python3 memory_backup.py backup --source ~/my-memory --retention 5
# List all available backup points
python3 memory_backup.py list
# Restore from a specific backup
python3 memory_backup.py restore --restore-from ~/.agent-memory-backups/memory_backup_20240115_120000.tar.gzParameters
| Flag | Default | Description |
--source | ~/.agent-memory | Memory source directory or file |
--backup-dir | ~/.agent-memory-backups | Where backups are stored |
--retention | 10 | Keep N most recent backups (0 = keep all) |
--restore-from | — | Backup file path (required for restore) |
--restore-to | ~/.agent-memory | Restore destination |
--output | json | Output format (json or print) |
Output examples
Backup:
{"status": "ok", "path": "/Users/you/.agent-memory-backups/memory_backup_20240115_120000.tar.gz", "retention": 10}List:
{"backups": [{"path": "...", "name": "memory_backup_20240115_120000.tar.gz", "created": "2024-01-15T12:00:00"}], "count": 1}Restore:
{"status": "ok", "restored_to": "/Users/you/.agent-memory"}Scheduled backups (cron)
0 */6 * * * cd /path/to/skill && python3 memory_backup.py backupError handling
- Source not found: returns
{"error": "Source not found: <path>"} - Missing --restore-from: returns
{"error": "--restore-from required for restore"} - Restore overwrites destination: existing files at restore target are replaced — back up first if uncertain
Related skills
- session-memory: the data source this skill backs up
- calendar: trigger scheduled backups
- file-organizer: manage backup files
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

