How to Backup and Transfer Your Hermes Agent
Why Back Up Your Hermes Agent?
Moving to a bigger VPS? Switching to a Mac Mini? Just want a safe copy of your setup?
Hermes packs your entire config, skills, sessions, and data into a zip file you can move anywhere. The backup uses SQLite’s safe copy API, so it works even while Hermes is running (WAL-mode safe). It skips the Hermes codebase itself, so you only move your stuff.
Prerequisites
- Hermes Agent running on your source machine
- Basic CLI knowledge
- Fresh Hermes install on the target machine (no existing config)
Step1: Create a Backup
Run this on your source machine:
# Full backup, saves to ~/hermes-backup-<timestamp>.zip
hermes backup
# Save to a specific path
hermes backup -o /tmp/hermes-migration.zip
# Quick snapshot: only config.yaml, state.db, .env, auth, cron jobs
hermes backup --quick
# Quick snapshot with a label to remember why you took it
hermes backup --quick --label "pre-vps-upgrade"Backup Options
| Option | Description |
|---|---|
-o, --output <path> | Where to save the zip (default: ~/hermes-backup-<timestamp>.zip) |
-q, --quick | Skip full backup, only grab critical state files (faster) |
-l, --label <name> | Name your quick snapshot (only works with --quick) |
More details: Hermes CLI Commands - hermes backup
Step2: Install Hermes on the Target Machine
Get a fresh Hermes Agent install on your new machine (VPS, Mac, whatever) with no existing config. Follow the official install guide for your OS.
Step3: Transfer the Backup Zip
Move the zip to your target machine. Pick your method:
scpfor remote VPS:scp ~/hermes-backup-20260427-123456.zip user@your-vps:/tmp/- AirDrop, USB, or file sync for local Mac/PC moves
Step4: Import the Backup
On the target machine, run:
hermes import /tmp/hermes-backup-20260427-123456.zipThat’s it. Your config, skills, sessions, and data are all there. No reconfiguring or lost work.
Troubleshooting
| Problem | Solution |
|---|---|
| Backup file not found | Check ~/ for default backup files, or the path you specified with -o |
| Import fails | Make sure Hermes is freshly installed with no existing config |
| Backup takes too long | Use --quick for a faster snapshot of critical files only |
| Database locked error | Hermes backup uses SQLite’s safe copy API, so this shouldn’t happen even if Hermes is running. If it does, close Hermes first. |
Crepi il lupo! 🐺