The Directory Server provides the move-subtree tool to move a subtree or one entry on one machine to another.
The move-subtree tool moves a subtree or multiple entries from one machine to another. The tool does not copy the entries. After the entries are moved, they are no longer present on the source server.
Note:
The subtree or entry must exist on the source server and cannot be present on the
target server. The source server must also support the real attributes
only
request control. The target server must support the Ignore
NO-USER-MODIFICATION
request control.
To move an entry, such as
uid=test.user,ou=People,dc=example,dc=com, from the source
host to the target host, run the move-subtree tool.
$ bin/move-subtree --sourceHost source.example.com --sourcePort 389 \
--sourceBindDN "uid=admin,dc=example,dc=com" --sourceBindPassword password \
--targetHost target.example.com --targetPort 389 \
--targetBindDN "uid=admin,dc=example,dc=com" --targetBindPassword password \
--entryDN uid=test.user,ou=People,dc=example,dc=com