Back to AI Q&A
How to backup and migrate Hermes Agent server?

How to backup and migrate Hermes Agent server?

AI Q&A Admin 844 views

Before switching servers, Hermes Agent prioritizes generating backup packages with official hermes backup and then restoring them on the new machine with hermes import. Don't just copy the repository directory, as the configurations, sessions, skills, and keys that really matter are usually ~/.hermes/.

What to confirm before migrating

  • Old machines can operate hermes doctor normally, avoiding the direct relocation of bad environments.
  • Clarify whether you want to migrate keys, sessions, skills, crons, and profiles.
  • The new machine system is officially supported: Linux, macOS, WSL2 or Termux.
  • If it involves a Docker/SSH/Modal backend, make sure that external resources are also accessible on the new machine.

Basic migration process

  1. Older machines perform hermes backup, saving the resulting zip or archive file.
  2. Transfer the backup package to a safe location on the new machine.
  3. The new machine installed Hermes before performing the hermes import 备份文件.
  4. Run hermes doctor and hermes status to check the recovery results.

Be extra careful with your keys

Backups may contain sensitive information such as API keys, bot tokens, email authorization codes, and webhook secrets. Do not use public links when transferring, and rotate key tokens after the migration is completed, especially if the old machine is no longer controlled or has been exposed to multiple people.

If you only want to migrate an independent identity, you can also consider profile export/import. Use backup/import for whole machine migration, and profile export for individual role migration, which is clearer.

Recommended Tools

More