Backups & Key Rotation
Hot Online Backups
Section titled “Hot Online Backups”All Kova state—including encrypted connections, avatars, shares, bookmarks, and audit logs—lives in /data/kova.db. Take consistent online backups without stopping Kova:
sqlite3 /data/kova.db "VACUUM INTO '/backups/kova-$(date +%F).db';"Always back up KOVA_ENCRYPTION_KEY separately in a password manager or vault.
Zero-Downtime Encryption Key Rotation
Section titled “Zero-Downtime Encryption Key Rotation”- Set
KOVA_ENCRYPTION_KEY_PREVIOUSto your old key andKOVA_ENCRYPTION_KEYto your new 32-byte key. - Run
docker exec kova bun apps/server/dist/crypto/reencrypt-cli.jsinside the container (orbun run cli:reencryptin a source checkout) to re-encrypt all saved credentials. - Remove
KOVA_ENCRYPTION_KEY_PREVIOUSand restart.