A summary of the dsreplication subcommands and functions is presented in the table below.
Subcommand | Description |
---|---|
disable |
Disables replication on the specified server for the provided base DN and removes references to this server in the other servers with which it is replicating data. |
enable |
Updates the configuration of the servers to replicate the data under the specified base DN. If one of the servers is already replicating the data under the base DN with other servers, executing this subcommand will update the configuration of all the servers (so it is sufficient to execute the command line once for each server you add to the replication topology). |
initialize |
Initializes the data under the specified base DN on the destination server with the contents on the source server. |
initialize-all |
Initializes the data under the specified base DN on all servers in the replication topology with the contents on the specified server. |
post-external-initialization |
Used with pre-external-initialization, the command resets the generation ID based on the newly-loaded data. This subcommand must be called after initializing the contents of all the replicated servers using the import-ldif tool or dsreplication initialize. Specify the list of base DNs that have been initialized and provide the credentials of any of the servers that are being replicated. See the usage of the pre-external-initialization subcommand for more information. This subcommand only needs to be run on one of the replicas once . |
pre-external-initialization |
Clears the existing generation ID and removes all accumulated changes of the replicated suffix from the replication changelog database at each and every replication server. This subcommand should be used when globally restoring the replicas on all of the servers in a topology. You must specify the list of base DNs that will be initialized and provide the credentials of any of the servers that are being replicated. After calling this subcommand, initialize the contents of all the servers in the topology, then call the post-external-initialization subcommand. This subcommand only needs to be run on one of the replicas once . |
status |
Displays the status of replication domains. If no base DNs are specified as parameters, the information for all base DNs is displayed. Available options with the status subcommand are: --showAll, --displayServerTable, --location. |