hey <@U04S8PLJWMT>
# ask-ai
a
hey @kapa.ai
k
Hello! How can I help you with Airbyte today? If you have any questions about Airbyte’s features, setup, connectors, or best practices, just let me know.
a
@kapa.ai on airbyte ec2, after having an independent postgres and s3 volume, i was able to segregate the compute and the storage. At least I thought so. But when I try disaster recovery, meaning setting up another new ec2 and connecting it to existing db and s3, the connections, source, destinations are not there...am I doing anything wrong?
k
A message from kapa.ai
Based on the information in the knowledge sources, simply pointing a new Airbyte EC2 instance to an existing external Postgres database and S3 volume is not sufficient for disaster recovery or migration. Airbyte does not automatically migrate or recognize configurations, sources, destinations, or connections just by connecting to the same external storage and database. You need to manually back up and restore the Airbyte database to retain your configurations and state. A support agent confirms: "You need to backup manually the database, today Airbyte doesn’t have a migration feature between the internal database" [Connecting to an External Postgres database](https://discuss.airbyte.io/t/2903). Additionally, for disaster recovery, Airbyte strongly recommends using external database, log storage, and secret management, but does not provide automated DR tooling or support for this process. The DR cluster must be kept at the same version as production, and manual intervention is required to restore configurations and state if you spin up a new instance [Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#disaster-recovery-dr-regions). In summary: - Merely connecting a new Airbyte instance to the same Postgres DB and S3 is not enough. - You must manually back up and restore the Airbyte database to preserve configurations. - There is no built-in automated DR or migration feature for this scenario. If you need to migrate or recover, ensure you have a backup of your Airbyte database and restore it to the new instance. Otherwise, your connections, sources, and destinations will not appear.
a
@kapa.ai how to do
- You must manually back up and restore the Airbyte database to preserve configurations.
k
A message from kapa.ai
To manually back up and restore the Airbyte database (when using an external Postgres instance), follow these steps: ### 1. Back Up the Airbyte Database You need to back up all relevant databases:
airbyte
,
temporal
, and
temporal_visibility
(if used). Here’s how you can do it using `pg_dump`:
Copy code
bash pg_dump -h <db_host> -U <db_user> airbyte > airbyte.sql pg_dump -h <db_host> -U <db_user> temporal > temporal.sql pg_dump -h <db_host> -U <db_user> temporal_visibility > temporal_visibility.sql
Replace
<db_host>
and
<db_user>
with your actual database host and user. ### 2. Restore the Airbyte Database On your new EC2 instance (or new environment), ensure the databases exist:
Copy code
sql CREATE DATABASE airbyte WITH OWNER = <db_user>; CREATE DATABASE temporal WITH OWNER = <db_user>; CREATE DATABASE temporal_visibility WITH OWNER = <db_user>;
Then, restore each database:
Copy code
bash psql -h <db_host> -U <db_user> -d airbyte -f airbyte.sql psql -h <db_host> -U <db_user> -d temporal -f temporal.sql psql -h <db_host> -U <db_user> -d temporal_visibility -f temporal_visibility.sql
Note: The database user should match the one configured in your Airbyte deployment. ### Important Notes - Airbyte does not automatically migrate or copy data between databases; manual backup and restore is required. - Ensure both Airbyte instances (old and new) are running the same version to avoid compatibility issues. - This process is necessary because Airbyte does not currently support automated migration or DR for its internal configuration and state data [Connecting to an External Postgres database](https://discuss.airbyte.io/t/2903), [External Postgres Database Setup Issues](https://github.com/airbytehq/airbyte/issues/49304). If you follow these steps, your new Airbyte instance should recognize all previous connections, sources, and destinations.
a
@kapa.ai how do I check versions
k
A message from kapa.ai
New message text here