Copy Lotus Notes databases from the Domino Server console command line

Recently I needed to make "copies" of some Lotus Notes databases and didn't want to do it from my Lotus Notes
Be sure to check out Bruce Elgort's podcast as well:
Taking Notes podcast
client. This would have taken hours considering the Lotus Notes database was 5 GB.

I knew that there had to be a way to do this and there is. Thanks to the assistance of my friend Thomas Gumz, I was able to issue a command line from the Domino Server console -- and presto, the database was instantly copied. It's not documented or supported, but it has been around for a long time, at least since R4 according to Thomas.

So let's look at what you need to do to enable this feature. The Domino Server console commands are turned off by default, so you need to first enable them. Set this server notes.ini variable, like so:

  • set config CLUSTER_ADMIN_ON=1 (even if the server is not in a cluster, it doesn't matter).

    More Notes.ini and Lotus Notes Domino database resources:
    Notes.ini tips and tutorials

    Notes.ini Reference Center

    Lotus Notes Domino Database Management

    No need to restart the Domino server, it becomes active immediately. This enables this new command: CL COPY sourcedb targetdb.

    Below, I have listed some examples for the CL COPY command:

  • CL copy serverA!!db1.nsf serverB!!db2.nsf
    This creates a regular non-replica copy of db1.nsf on serverA as db2.nsf on ServerB
  • CL copy serverA!!db1.nsf serverB!!db2.nsf REPLICA
    This creates a replica copy of db1.nsf on serverA as db2.nsf on ServerB
  • CL copy serverA!!db1.nsf serverB!!db2.nsf TEMPLATE
    This creates a template copy (only design, no data) of db1.nsf on serverA as db2.nsf on ServerB
  • CL copy db1.nsf db2.nsf
    This creates a regular non-replica copy of db1.nsf as db2.nsf on the same local server
  • Do you have comments on this tip? Let us know.

    This tip was submitted to the SearchDomino.com tip library by member Bruce Elgort. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

    This was first published in July 2007

    There are Comments. Add yours.

    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.