---
title: Schedule a real-time sync as a task
description: The realtime-sync command features both an offline mode of operation as well as the ability to schedule an operation to run within the PingDataSync server's process. To schedule an operation, supply LDAP connection options that allow this command to communicate with the server through its task interface. Tasks can be scheduled to run immediately or at a later time. Once scheduled, tasks can be managed using the manage-tasks command.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdatasync_server_administration_guide:pd_sync_sched_real_time_sync
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdatasync_server_administration_guide/pd_sync_sched_real_time_sync.html
revdate: September 13, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Schedule a real-time sync as a task

## About this task

The `realtime-sync` command features both an offline mode of operation as well as the ability to schedule an operation to run within the PingDataSync server's process. To schedule an operation, supply LDAP connection options that allow this command to communicate with the server through its task interface. Tasks can be scheduled to run immediately or at a later time. Once scheduled, tasks can be managed using the `manage-tasks` command.

Perform the following steps to schedule a synchronization task:

## Steps

1. Use the `--start` option with the `realtime-sync` command to schedule a start for the synchronization topology. The following command will set the start time at July 21, 2016 at 12:01:00 AM. The scheduled task can be stopped with the`--stop` option.

   ```shell
   $ bin/realtime-sync set-startpoint \
     --pipe-name "sun-to-ds-sync-pipe" \
     --port 389 \
     --bindDN "uid=admin,dc=example,dc=com" \
     --bindPassword secret \
     --start 20160721000100 \
     --no-prompt
   ```

   ```
   Set StartPoint task 2009072016103807 scheduled to start Jul 21, 2016
   12:01:00 AM CDT
   ```

2. Run the `manage-tasks` command to manage or cancel the task.

   ```shell
   $ bin/manage-tasks --port 7389 \
     --bindDN "uid=admin,dc=example,dc=com" \
     --bindPassword secret
   ```
