is there a streamlined way to take objects from on...
# replication-troubleshooting
p
is there a streamlined way to take objects from one airbyte environment and import them into another ie. a dev to prod flow
k
Yes, there are streamlined ways to move Airbyte configurations (sources, destinations, connections) from one environment (like dev) to another (like prod), but the approach depends on your Airbyte version and deployment. ### 1. Octavia CLI (Recommended for Version Control and CI/CD) The recommended modern approach is to use the [Octavia CLI](https://airbyte.com/tutorials/version-control-airbyte-configurations). With Octavia, you can: - Export all configurations from your dev instance using
octavia import all
. - Version control these YAML files in Git. - Apply the configurations to your prod instance using
octavia apply
. Note: You will need to update secrets and environment-specific variables before applying to a new environment. State files (which track incremental syncs) can be ignored if you want to avoid overwriting production state with dev state. This approach is well-suited for CI/CD pipelines and supports a dev-to-prod workflow [Version control Airbyte configurations with Octavia CLI](https://airbyte.com/tutorials/version-control-airbyte-configurations). ### 2. Database Backup/Restore (for Docker Deployments) If you are running Airbyte via Docker, you can migrate by backing up the Airbyte PostgreSQL database from your dev environment and restoring it in prod. This method copies everything, including state and job history, but requires both environments to be on the same Airbyte version. The process involves: - Stopping Airbyte services except the database. - Dumping the database with
pg_dump
. - Transferring and restoring the dump on the prod instance. - Restarting Airbyte. This is a full migration and is best for moving entire environments, not selective objects [How to import/export Airbyte to a new instance (docker to docker deploy)](https://discuss.airbyte.io/t/3514). ### 3. Manual Recreation or API You can also manually recreate connectors in the prod environment or use the Airbyte API to script the creation of resources. However, this does not transfer state, so incremental syncs may require a full refresh [Advice regarding migrating between Airbyte instances](https://discuss.airbyte.io/t/1768). ### Important Notes - The old UI-based import/export feature has been removed for security reasons. Use Octavia CLI or database backup instead [Not able to find export/import configuration option](https://discuss.airbyte.io/t/3487). - When using Octavia CLI, avoid editing resources in the UI to prevent configuration drift. - For Airbyte Cloud, direct import/export from OSS is not currently supported; you must recreate resources manually. Summary: For most users, Octavia CLI offers the most streamlined, version-controlled, and CI/CD-friendly way to move Airbyte objects from dev to prod. For full environment migrations, database backup/restore is an option, but be cautious with state and secrets.