Backup and restore

Encrypted backups of the database and the server .env file, with a restore that does not touch live data by default.


scripts/backup.sh creates an encrypted archive of the database and the .env file. scripts/restore.sh restores it, by default into a separate check database.

BACKUP_PASSPHRASE='<passphrase>' scripts/backup.sh
BACKUP_PASSPHRASE='<passphrase>' scripts/restore.sh backups/<archive>

Keep the backup passphrase outside the server. Without the ENCRYPTION_KEY from the backup, stored credentials cannot be decrypted.

See docs/backup-and-restore.md in the repository for the full procedure.