Skip to content

Backups & Key Rotation

All Kova state—including encrypted connections, avatars, shares, bookmarks, and audit logs—lives in /data/kova.db. Take consistent online backups without stopping Kova:

Terminal window
sqlite3 /data/kova.db "VACUUM INTO '/backups/kova-$(date +%F).db';"

Always back up KOVA_ENCRYPTION_KEY separately in a password manager or vault.

  1. Set KOVA_ENCRYPTION_KEY_PREVIOUS to your old key and KOVA_ENCRYPTION_KEY to your new 32-byte key.
  2. Run docker exec kova bun apps/server/dist/crypto/reencrypt-cli.js inside the container (or bun run cli:reencrypt in a source checkout) to re-encrypt all saved credentials.
  3. Remove KOVA_ENCRYPTION_KEY_PREVIOUS and restart.