diagnosing-backup
Skill6 starsChanged 8 days agoMITView on GitHub
Diagnose Hermes backup and restore issues — backup creation failures, restore errors, checkpoint corruption, and import/export problems.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- diagnosing-authSkill
- diagnosing-bot-modeSkill
- diagnosing-browserSkill
- diagnosing-cli-tuiSkill
- diagnosing-commandsSkill
- diagnosing-configSkill
- diagnosing-cronSkill
- diagnosing-desktopSkill
- diagnosing-gatewaySkill
- diagnosing-hooksSkill
- diagnosing-host-pressureSkill
- diagnosing-mcpSkill
- diagnosing-memoriesSkill
- diagnosing-memorySkill
- diagnosing-pathSkill
- diagnosing-pluginsSkill
- diagnosing-profilesSkill
- diagnosing-providersSkill
- diagnosing-runtimeSkill
- diagnosing-secretsSkill
- diagnosing-sessionsSkill
- diagnosing-skillsSkill
- diagnosing-storageSkill
- diagnosing-triageSkill
- diagnosing-updateSkill
- diagnosing-voiceSkill
- hermes-configuration-guideSkill
- hermes-post-updateSkill
- installing-hermesSkill
- plugin-authoringSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 128
After applying fixes, restart the session to pick up restored configuration.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diagnosing Backup
Goal: reduce any backup/restore problem to one concrete fix — a backup creation failure, a restore error, or checkpoint corruption.
1. How to inspect
hermes backup— create a backup of Hermes homehermes import <file>— restore from a backup ziphermes checkpoints status— show checkpoint store size and breakdownhermes checkpoints list— alias for statushermes checkpoints prune— delete orphan/stale checkpointshermes checkpoints clear— wipe all checkpoints (irreversible)hermes doctor— flags backup/restore issues
2. Common failures
Backup creation fails
Symptom: hermes backup exits with error or produces an empty/corrupt zip.
Cause: Insufficient disk space, permission errors, or large files exceeding zip limits.
Fix:
cfg=$(hermes config path)
hermes backup --output /tmp/hermes-backup.zip
ls -lh /tmp/hermes-backup.zip
# Check disk space:
df -h "$(dirname "$cfg")"
# Check permissions:
ls -la "$(dirname "$cfg")"Restore fails
Symptom: hermes import <file> fails with "invalid archive" or "version mismatch".
Cause: Backup from incompatible Hermes version, or corrupt zip file.
Fix:
# Verify zip integrity:
unzip -t /path/to/backup.zip
# Check Hermes version:
hermes --version
# Restore (overwrites existing files; back up current state first):
hermes backup --output /tmp/pre-restore.zip
hermes import /path/to/backup.zipNote: hermes import overwrites existing files in Hermes home. There is no --merge option. Back up current state before restoring.
Checkpoint corruption
Symptom: hermes checkpoints list shows corrupted entries, or checkpoint restore fails.
Cause: Disk write interrupted, or checkpoint file permissions wrong.
Fix:
hermes checkpoints status # show store size and breakdown
hermes checkpoints list # alias for status
hermes checkpoints prune # delete orphan/stale checkpoints
# Only if prune is insufficient and you accept full loss:
# hermes checkpoints clear # IRREVERSIBLE — deletes entire storeBackup too large
Symptom: Backup zip exceeds reasonable size, or backup takes too long.
Cause: Large session logs, cache, or venv included in backup.
Fix:
cfg=$(hermes config path)
du -sh "$(dirname "$cfg")"/* # find large directories
# Use --quick for a smaller backup:
hermes backup --quick --output /tmp/hermes-backup.zip
# Or prune sessions first:
hermes sessions prune --older-than 30d
hermes backup --output /tmp/hermes-backup.zipNote: hermes backup has built-in exclusions. There is no --exclude option.
Import path conflicts
Symptom: Restore overwrites existing config or creates duplicate entries.
Cause: Restoring to a non-empty Hermes home. Import overwrites existing files.
Fix:
# Back up current state first:
hermes backup --output /tmp/pre-restore.zip
# Inspect archive contents before restoring:
unzip -l /path/to/backup.zip
# Restore to a fresh profile to avoid overwriting:
hermes profile create restored
hermes -p restored import /path/to/backup.zipVerification
cfg=$(hermes config path)
hermes backup --output /tmp/test-backup.zip
unzip -t /tmp/test-backup.zip # verify integrity
hermes checkpoints status # checkpoints healthy
hermes doctor # no backup/restore errorsPass: backup creates valid zip; checkpoints healthy; doctor shows no errors.
Fail: backup corrupt — check disk space and permissions; restore fails — verify archive integrity and Hermes version.
After applying fixes, restart the session to pick up restored configuration.
4. Related
diagnosing-storage— disk space and storage issuesdiagnosing-sessions— session data and pruninginstalling-hermes— installation and setup
Facts re-verified 2026-11-01 against upstream source at commit 40804ce4074c561220c4a766e116e07b4873b1c3 (hermes_cli/subcommands/backup.py, hermes_cli/subcommands/import_cmd.py, hermes_cli/checkpoints.py). Re-verify before reuse.
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.

