C.5 Setting Up Multiple Instances of ndsrep

You can run multiple instances of ndsrep to support multiple drivers running against a single Domino server. You must specify the appropriate driver instance name as a parameter when loading ndsrep. By default, this instance name is the name of the driver.

If the name of your driver includes spaces, you must put quotes around the name.

Suppose you want to synchronize names.nsf and addressbook.nsf databases. To synchronize the databases, use the following procedure:

  1. Configure two Notes drivers, one for each database.

  2. Run two instances of ndsrep, one for each synchronized database.

  3. Configure ndsrep to write cache files with different names such as ndsrep.nsf and ndsrep2.nsf.

  4. Configure the second driver to read the second cache file (ndsrep2.nsf).

  5. To change the default Notes database that is synchronized by the driver, change the value of the Directory File from names.nsf to addressbook.nsf.

Consider the following important issues with setting up multiple instances of ndsrep:

  • To load ndsrep, you must use the appropriate instance name:

    load ndsrep instance

    ndsrep is loaded and referenced by using TELL commands by the value of instance.

  • When modifying notes.ini to auto load multiple instances of ndsrep, simply insert ndsrep instance multiple times on the ServerTask line of notes.ini.

    For example:

    ServerTasks=Update,Replica,Router,AMgr,AdminP,
    ndsrep notesdrv1,ndsrep notesdrv2,CalConn,Sched,HTTP,IMAP,POP3

    You can also create multiple program documents (see Automated Method 2).

  • For custom configurations, you can make ndsrep to utilize a different configuration database. To do so, use the ndsrep configuration parameter and load ndsrep by using the -f filename parameter as noted in ndsrep configuration database and ndsrep configuration instance in the parameters table in Section 5.0, Customizing the Driver.