Home > Domino Tips > Administrator > Copy Lotus Notes databases from the Domino Server console command line
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SERVER

Copy Lotus Notes databases from the Domino Server console command line


Bruce Elgort
07.19.2007
Rating: -3.61- (out of 5)


Lotus Notes, Domino, Workplace and WebSphere tips and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


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.

    Rate this Tip
    To rate tips, you must be a member of SearchDomino.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Lotus Notes Domino Database Management
    Add a program doc to compact Lotus Notes databases automatically
    Set a value in a field existing in another Lotus Notes database
    Fix 'Audit Trail' error when opening Notes docs
    'Illegal circular use: Audit Trail' error when opening Lotus Notes docs
    Shrink Lotus Notes databases with many attachments
    Remove orphaned Lotus Notes documents on Domino databases with a 'virtual delete'
    Tutorial: How to import data into Lotus Notes -- without programming
    Easily show and hide layers in a Lotus Notes database
    Managing Lotus Notes doclinks with LotusScript
    Moving a remote user mail database to new Lotus Domino server

    Notes.ini
    Routing Domino cluster servers to the correct network
    Use a notes.ini setting to adjust font sizes in Lotus Notes
    Track and record Lotus Notes user logins to Domino Server
    Log off idle Lotus Notes users for better Domino Server performance
    Notes.ini tips and tutorials
    Notes.ini and mail.boxes transaction logging -- a cautionary tale
    Servername field updated in the notes.ini file lost after restart
    Make shared address book look like a searchable address book
    Getting 'file does not exist' error after reinstalling Domino on a new server
    Roaming Notes

    Server
    Move a Lotus Domino server to a new certifier without a reinstall
    Securely connect Lotus Domino servers on different domains
    Track and record Lotus Notes user logins to Domino Server
    Use SMTP outbound authentication to relay hosts in Lotus Notes Domino 8
    Log off idle Lotus Notes users for better Domino Server performance
    How to perform an in-place upgrade of Lotus Domino server hardware
    Daylight Saving Time 2007 -- seven helpful tips for Lotus Notes administrators
    FileZilla
    How and why to change replica IDs during a Lotus Notes Domino upgrade
    Finding unused databases in Lotus Notes and Domino

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    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.

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts