Manual Recovery
Preferred method is using ogion itself - see CLI Reference.
If you need to restore manually without ogion, follow the steps below.
Recovery Process
1. Download Backup
Download the backup file from your cloud provider (GCS, S3, Azure).
2. Decrypt with age
You need the age private key that matches the public key used during backup.
1 | |
3. Decompress with lzip
1 | |
This produces the final backup file (e.g., backup.sql).
4. Restore Based on Type
PostgreSQL
Restore using psql:
1 | |
MariaDB
Restore using mariadb:
1 | |
File
Copy the file back:
1 | |
Directory
Extract the tar archive:
1 | |