Moving an entry from one machine to another
About this task
The PingDirectory 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.
|
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 |
Steps
-
To move an entry, such as
uid=test.user,ou=People,dc=example,dc=com, from the source host to the target host, run themove-subtreetool.Example:
$ 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