Installation guide

Migration Procedure
Chapter 6 Migrating from Previous Versions 77
3. Run the migration script.
As
root user (on UNIX) or administrator (on Windows), change directory to
serverRoot/bin/slapd/admin/bin. Then enter the following command:
On UNIX:
migrateInstance7 -D rootDN -w password -p port -o oldInstancePath -n
newInstancePath
On Windows (see also "Migrating Windows‚" on page 87):
perl migrateInstance7 -D rootDN -w password -p port -o
oldInstancePath -n newInstancePath -d "oldDataDirectoryPath"
where:
rootDN is the Directory Server 7.x user DN with root permissions, such as
Directory Manager.
password is the password for Directory Manager in Directory Server 7.x.
port is the LDAP port number assigned to Directory Server 7.x.
oldInstancePath is the path to the installation directory of the legacy Directory
Server (for example,
/usr/netscape/server6/slapd-serverID).
newInstancePath is the path to the installation directory of Directory Server
7.x (for example,
/usr/netscape/servers/slapd-serverID).
oldDataDirectoryPath is the path to the stored directory data from the legacy
installation (for example,
c:\netscape\archives\ldif).
The following is an example of a command you would use on a UNIX machine
to migrate an instance of Directory Server 6.11 to Directory Server 7.0:
migrateInstance7 -D "cn=Directory Manager" -w secret -p 389
-o /usr/netscape/server611/slapd-phonebook
-n /usr/netscape/servers/slapd-phonebook
The following is an example of the same command on a Windows machine:
perl migrateInstance7 -D "cn=Directory Manager" -w secret -p
389
-o c:\netscape\server611\slapd-phonebook
-n c:\netscape\servers\slapd-phonebook
-d "c:\netscape\archives\ldif"
install.book Page 77 Wednesday, November 24, 2004 11:30 AM