Upgrades and backups
Upgrade
Verify the release
./rv bundle verifyBack up
Take a database backup (below).
Pull or build the new images
docker compose --profile logs --profile ai --profile proxy build # or pullMigrate and restart
docker compose run --rm migrate
docker compose --profile logs --profile ai --profile proxy up -d
./rv doctorMigrations only move forward. Always back up first.
Back up
Back up PostgreSQL with your usual tools (pg_dump, or your platform’s snapshots), to a destination in the same country. Values in the dump are encrypted, and useless without the key service.
Also keep, separately and securely: .env, and the key holders’ shares (held by the holders, never with backups).
A backup restored without the matching key service and shares can’t be decrypted. That’s by design.
Restore
- Restore the database.
- Start the key service and unseal it with three shares.
- Start the services and run
./rv doctor.
Last updated on