---
title: Configure the source PingDirectory server
description: The following procedure configures a backend set of directory servers. The procedure is the same for the source servers and the destination servers in a synchronization topology. For directory server installation and configuration details, see the PingDirectory server administration guide.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdatasync_server_administration_guide:pd_sync_config_source_pd_server
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdatasync_server_administration_guide/pd_sync_config_source_pd_server.html
revdate: September 13, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Configure the source PingDirectory server

## About this task

The following procedure configures a backend set of directory servers. The procedure is the same for the source servers and the destination servers in a synchronization topology. For directory server installation and configuration details, see the [PingDirectory server administration guide](../pingdirectory_server_administration_guide/pd_ds_amin_guide.html).

## Steps

1. On each backend PingDirectory server that will participate in synchronization, enable the change log database, either from the command line or by using a `dsconfig` batch file.

   ```shell
   $ dsconfig --no-prompt set-backend-prop \
     --backend-name changelog \
     --set enabled:true
   ```

2. Stop the server if it is running, and import the dataset for the first backend set into the first server in the backend set before the import.

   ```shell
   $ bin/stop-server
   $ bin/import-ldif --backendID userRoot --ldifFile ../dataset.ldif
   $ bin/start-server
   ```

3. On the first server instance in the first backend set, configure replication between this server and the second server in the same backend set.

   ```shell
   $ bin/dsreplication enable --host1 ldap-west-01.example.com \
     --port1 389 \
     --bindDN1 "cn=Directory Manager" \
     --bindPassword1 password \
     --replicationPort1 8989 \
     --host2 ldap-west-02.example.com \
     --port2 389 \
     --bindDN2 "cn=Directory Manager" \
     --bindPassword2 password \
     --replicationPort2 9989 \
     --adminUID admin \
     --adminPassword admin \
     --baseDN dc=example,dc=com \
     --no-prompt
   ```

4. Initialize the second server in the backend set with data from the first server in the backend set. This command can be run from either instance.

   ```shell
   $ bin/dsreplication initialize \
     --hostSource ldap-west-01.example.com \
     --portSource 389 \
     --hostDestination ldap-west-02.example.com \
     --portDestination 389 \
     --baseDN "dc=example,dc=com" \
     --adminUID admin \
     --adminPassword admin \
     --no-prompt
   ```

5. Run the following command to check replica status.

   ```shell
   $ bin/dsreplication status \
     --hostname ldap-west-01.example.com \
     --port 389 \
     --adminPassword admin \
     --no-prompt
   ```

6. Repeat steps 2 through 5 (import, enable replication, initialize replication, check status) for the second backend set.
