<@U04SE163WC8> how do i modify the connection so t...
# replication-ask-ai
b
@kapa.ai how do i modify the connection so that it fires off once a day at night?
k
To modify the connection so that it syncs once a day at night, you can use cron scheduling. Here are the steps to do it: 1. On the [Airbyte Cloud](http://cloud.airbyte.com) dashboard, click Connections and then click the connection you want to change. 2. Click the Replication tab. 3. Click the Configuration dropdown. 4. In the Replication Frequency dropdown, click Cron. 5. Enter a cron expression and choose a time zone to create a sync schedule. The cron expression for a daily sync at night depends on the specific time you want. For example, if you want the sync to happen every day at 2 AM, the cron expression would be
0 2 * * *
. Please note that only one sync per connection can run at a time. If a sync is scheduled to run before the previous sync finishes, the scheduled sync will start after the completion of the previous sync. For more information, you can refer to the [Airbyte documentation on configuring connections](https://docs.airbyte.com/cloud/managing-airbyte-cloud/configuring-connections) and [getting started with Airbyte Cloud](https://docs.airbyte.com/cloud/getting-started-with-airbyte-cloud).
b
@kapa.ai I am using OSS airbyte. I need to orchestrate the airbyte. how do i do that
k
A message from kapa.ai
You can orchestrate Airbyte using Apache Airflow. Here are the steps to do it: 1. Set up the tools: Make sure you have Docker installed. You'll be using the
docker-compose
command. If this is your first time using Airbyte, go through the [Basic Tutorial](https://github.com/airbytehq/airbyte/tree/e378d40236b6a34e1c1cb481c8952735ec687d88/docs/quickstart/getting-started.md). Set your Connection's sync frequency to manual. Airflow will be responsible for manually triggering the Airbyte job. If you don't have an Airflow instance, follow this [guide](https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html) to set one up. You will also need to install the
apache-airflow-providers-airbyte
package to use Airbyte Operator on Apache Airflow. You can read more about it [here](https://airflow.apache.org/docs/apache-airflow-providers-airbyte/stable/index.html). 2. Retrieve the Airbyte Connection ID: You'll need the Airbyte Connection ID so your Airflow DAG knows which Airbyte Connection to trigger. This ID can be seen in the URL on the connection page in the Airbyte UI. The Airbyte UI can be accessed at
localhost:8000
. 3. Create an Airbyte connection in Apache Airflow: Once Airflow starts, navigate to Airflow's
Connections
page. The Airflow UI can be accessed at
<http://localhost:8080/>
. Airflow will use the Airbyte API to execute your actions. The Airbyte API uses HTTP, so you'll need to create a HTTP Connection. Airbyte is typically hosted at
localhost:8001
. Configure Airflow's HTTP connection accordingly. 4. Create a DAG in Apache Airflow to trigger your Airbyte job: After setting up the connection, you can create a Directed Acyclic Graph (DAG) in Apache Airflow to trigger your Airbyte job. For more detailed instructions, you can refer to the [Airbyte Operator guide](https://docs.airbyte.com/operator-guides/using-the-airflow-airbyte-operator) and the [tutorial on using Airflow and Airbyte together](https://airbyte.com/tutorials/how-to-use-airflow-and-airbyte-together).