<@U04S8PLJWMT> Airbyte: find a way to import/expor...
# ask-ai
v
@kapa.ai Airbyte: find a way to import/export destinations & connections
k
To import/export destinations and connections in Airbyte, there are a few approaches depending on your deployment and version: ### 1. Octavia CLI (Recommended for Configuration as Code) Airbyte provides the Octavia CLI, which allows you to import, edit, and apply Airbyte resource configurations (including sources, destinations, and connections) as YAML files. This is useful for version control and migrating configurations between instances. - Export: Use
octavia import all
to retrieve all configurations from your Airbyte instance. This will create YAML files for each resource. - Import: Use
octavia apply
to push these configurations to another Airbyte instance. Note that you may need to update secrets and environment variables before applying to a new instance. Example workflow:
Copy code
bash octavia init octavia import all # Edit secrets in the YAML files as needed octavia apply --airbyte-url http://your-new-instance-url --force --airbyte-username USER --airbyte-password PASS
Keep in mind that Octavia CLI is an alpha, unofficial tool and may not be maintained. Airbyte now also offers an official Terraform provider for similar use cases, which is recommended for production environments. However, Octavia CLI is still commonly used for quick migrations and version control of configurations as code. Secrets are masked in the exported YAML and must be updated before import to a new instance. [Version control Airbyte configurations with Octavia CLI](https://airbyte.com/tutorials/version-control-airbyte-configurations) ### 2. Database Backup/Restore (for Docker Deployments) For Docker-based deployments, you can migrate all configurations (including destinations and connections) by backing up the Airbyte Postgres database and restoring it on the new instance. This method requires both instances to be on the same Airbyte version. This approach is more "all or nothing" and not granular to just destinations/connections. Steps include: - Stop Airbyte services except the database. - Use
pg_dump
to export the database. - Transfer the SQL file to the new server. - Drop and recreate the Airbyte database on the new instance, then restore from the SQL file. - Restart Airbyte and re-trigger connections as needed. [How to import/export Airbyte to a new instance (docker to docker deploy)](https://discuss.airbyte.io/t/3514) ### 3. UI/API (No Longer Supported for Import/Export) The import/export configuration options were previously available in the Airbyte UI but have been removed for security reasons. The recommended approach is now to use Octavia CLI or the official Terraform provider for configuration management. [Not able to find export/import configuration option](https://discuss.airbyte.io/t/3487) ### 4. Airbyte API & Terraform Provider You can also use the Airbyte API or the official Terraform provider to programmatically manage and migrate configurations. The UI provides a "Copy JSON" button for connector configurations, which can be used with these tools. [Add and manage destinations](https://docs.airbyte.com/platform/next/using-airbyte/getting-started/add-a-destination) --- Summary: - Use Octavia CLI or the official Terraform provider for configuration as code and migration. - For full instance migration, use database backup/restore. - UI-based import/export is deprecated. - Always update secrets and environment variables when migrating configurations. If you need step-by-step instructions for a specific method, let me know!