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.83- (out of 5)


Lotus Notes and Domino tips, tutorials and how-to articles
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
    LotusScript code rebuilds corrupted busytime.nsf file
    LotusScript agent automates selective mail file replication
    Configuring Domino Domain Monitoring (DDM)
    How to move Notes databases off Domino 8 servers and save disk space
    What is Notes 8.5's DAOS (Domino Attachment and Object Storage) feature?
    LotusScript agent indexes Lotus Notes/Domino databases
    An introduction to Domino Domain Monitoring (DDM)
    'Customize this view' options are disabled in Lotus Notes databases
    LotusScript button saves time searching large Lotus Notes databases
    Batch file runs scheduled Lotus Notes database maintenance tasks

    Notes.ini
    Running multiple instances of Lotus Notes
    Top 10 Lotus Notes/Domino administration tips of 2008
    Five Domino domain default server settings you should change and why
    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

    Server
    How to move Notes databases off Domino 8 servers and save disk space
    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

    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.



    Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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