Scheduling Your Task - AWS DataSync

Scheduling Your Task

Using task scheduling in AWS DataSync, you can periodically execute a transfer task from your source storage system to the destination. A scheduled task automatically runs at a frequency that you configure. For example, the following screenshot shows a configuration that runs a task every Sunday and Wednesday at 12:00 PM UTC.

With DataSync, you can also execute a task schedule based on a cron expression. A cron expression should be specified in UTC time. For example, you can configure a task to run on every Sunday and Wednesday at 12:00 PM by using the following cron expression.

0 12 ? * SUN,WED *

For detailed information about schedule expressions syntax, see Schedule Expressions for Rules in the Amazon CloudWatch User Guide.

Configuring a Task Schedule

You can configure the frequency of the task execution by using the DataSync console or API. When you create or edit a task, the following options are available for Frequency in the console:

  • Choose Not Scheduled if you don't want to schedule your task to run periodically.

  • Choose Hourly and choose the minute in the hour that the task should run. The task runs every hour on the specified minute.

  • Choose Daily and enter the UTC time that you want the task to run, in the format HH:MM. This task runs every day at the specified time.

  • Choose Weekly and the day of the week and enter the UTC time the task should run, in the format HH:MM. This task runs every week on the specified day at the specified time.

  • Choose Days of the week, choose the specific day or days, and enter the UTC time that the task should run in the format HH:MM. This task runs on the days and the time that you specified.

  • Choose Custom if you want to use a custom cron expression to run your task. Then enter your expression in the Cron expression box.

For detailed information about schedule expressions, see Schedule Expressions for Rules in the Amazon CloudWatch User Guide.

Editing a Task Schedule

You can configure scheduling when you initially create a task, or you can edit a task schedule after a task is created. Use the following procedure to configure a schedule after you have created a task.

To edit a task schedule

  1. Open the AWS DataSync console at https://console.aws.amazon.com/datasync/.

  2. On the navigation pane, choose Tasks, and then choose the task that you want to edit.

  3. For Actions, choose Edit to open the Edit Tasks page and expand Schedule (optional).

  4. In the Schedule (optional) section, configure your task to run on a schedule that you specify.

  5. For Frequency, configure how frequently you want the task to run. For frequency configurations options, see Configuring a Task Schedule.