PingDirectory

Creating a recurring task and task chain

Use dsconfig to create one or more tasks and then add them to a task chain for scheduling.

Steps

  1. To create a task, use dsconfig create-recurring-task.

    Example:

    The following creates a backup task.

    $ bin/dsconfig create-recurring-task \
      --task-name backup-1 \
      --type backup \
      --set 'email-on-failure:admin1@company.com' \
      --set 'email-on-failure:admin2@company.com' \
      --set compress:true \
      --set encrypt:true \
      --set "retain-previous-full-backup-age:4 w" \
      --set retain-previous-full-backup-count:10
  2. To create a task chain to schedule and run recurring tasks, use dsconfig create-recurring-task-chain.

    Example:

    $ bin/dsconfig create-recurring-task-chain \
      --chain-name "backup chain" \
      --set recurring-task:backup-1 \
      --set scheduled-date-selection-type:selected-days-of-the-month \
      --set scheduled-day-of-the-month:last-day-of-the-month \
      --set scheduled-time-of-day:02:00