GUANGYU QU
10/22/2024, 3:20 PMuser
10/22/2024, 3:21 PMdocker-compose down docker-compose up -d db
2. Create a backup of the database using the following command: docker exec airbyte-db pg_dump -U docker airbyte > airbyte_backup.sql
3. Stop the database again with docker-compose down
. 4. Copy/transfer the SQL file to your new server. 5. On your new server, start Airbyte using docker-compose up -d
. After the service is running, stop it to rebuild the database with docker-compose down
. 6. Start only the database with docker-compose up -d db
. 7. Run the following commands to drop the new database, create a new one, and regenerate your database: docker exec airbyte-db psql -U docker -c 'drop database airbyte'; docker exec airbyte-db psql -U docker -c 'create database airbyte with owner docker;' cat airbyte.sql| docker exec -i airbyte-db psql -U docker -d airbyte
8. Restart Airbyte with your backup using docker-compose up -d
. Please note that you must trigger all connections again to create the temporal workflow for them again. You can use the Airbyte API to do it. For more details, you can refer to these discussions: [Migrating between Airbyte instances](https://discuss.airbyte.io/t/1768), [How to import/export Airbyte to a new instance](https://discuss.airbyte.io/t/3514), and [Connecting to an External Postgres database](https://discuss.airbyte.io/t/2903).GUANGYU QU
10/22/2024, 3:25 PMuser
10/22/2024, 3:26 PMuser
10/22/2024, 3:26 PM