cd /news/ai-tools/backup-hermes-agent · home topics ai-tools article
[ARTICLE · art-49417] src=blog.devgenius.io ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Backup Hermes Agent

Hermes users should regularly back up their ~/.hermes directory using the built-in 'hermes backup' command, which creates a timestamped archive of core memory, persona, and configs. The command uses SQLite's backup API for safe operation even while Hermes is running, and a '--quick' flag is available for essential files only. Regular backups protect conversation history and custom skill outputs.

read2 min views1 publishedJul 7, 2026

Key idea: Back up your ~/.hermes directory regularly. Use hermes backup for a full snapshot, or hermes backup --quick for just the critical files. Store the zip somewhere safe.

You’ve heard it a thousand times — back up your data. I run mine daily. Here’s why it matters:

Hermes stores its core memory, persona, and configs in ~/.hermes/.

The built-in CLI creates a complete, timestamped archive:

hermes backup

You’ll see something like:

hermes backupScanning ~/.hermes ...Backing up 4579 files ...  500/4579 files ...  ...  4500/4579 files ...
Backup complete: /home/jeff/hermes-backup-2026-06-01-101955.zip  Files:       4579  Original:    311.7 MB  Compressed:  129.1 MB  Time:        14.8s
Excluded directories:    checkpoints/    hermes-agent/    node/lib/node_modules/    skills/autonomous-ai-agents/hermes-agent/
python
Restore with: hermes import hermes-backup-2026-06-01-101955.zip

Pro tip: If you only need the essentials — config, sessions, API keys, and auth — use the --quick flag. It's way faster and skips the full file scan:

hermes backup --quick

The native command uses SQLite’s backup() API under the hood, so it works safely even when Hermes is running.

If you want to roll your own backup script, grab these files:

The native hermes backup command already handles all of the above. But if you're scripting it yourself, or you want extra control over what goes where, these are the critical pieces.

Custom skills sometimes dump their output (generated articles, images, etc.) into ~/.hermes/skills/ or ~/.hermes/cache/ if the skill didn't specify an output directory. This is easy to miss — you might not even find those files after the job finishes. Check both directories if you're looking for something a skill produced.

You probably don’t need to back up the database if you just chat. But if you care about your conversation history — say you want to search past sessions or build a semantic index — then definitely keep a copy. Here’s what’s inside:

The database holds:

From the official docs, the schema has:

If you do decide to back it up, always use SQLite’s online backup API instead of a direct file copy — that keeps the database consistent. The native hermes backup command already handles this for you.

So go run hermes backup and store that zip somewhere safe.

Backup Hermes Agent was originally published in Dev Genius on Medium, where people are continuing the conversation by highlighting and responding to this story.

── more in #ai-tools 4 stories · sorted by recency
── more on @hermes 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/backup-hermes-agent] indexed:0 read:2min 2026-07-07 ·