Create script that will copy the exchange data store

Posted on 2009-05-01
Last Modified: 2012-05-06
I am creating a batch file that robocopy's 3 shares to a disk. I also would like to put a line in there that will copy the exchange data over to the drive. what command can I use for this?
Question by:Lawrencejr
    LVL 14

    Expert Comment

    Ummm....don't?  Exchange is not a simple data store -- it has transaction files that are integral to the system.  Just copying the two datastore files is not likely to give you a restorable system (unless you plan to have your script properly flush the logs and shut down the stores).

    Instead, schedule your backups using NTBACKUP on the Exchange server.  This will properly back up the Exchange data stores in a format that can be successfully restored when disaster strikes.

    Author Comment

    would tape backup work?
    LVL 14

    Accepted Solution

    ...clarification and additional point for understanding of Exchange architecture...

     1)  Clarification that each data store will have two data store files (.edb and .stm) in addition to the transaction logs.  So on a standard setup you will have a public and private data stores -- four database files total plus transaction logs.

    2)  Transaction log files will grow indefinitely until they crash your system or are backed up (assuming you don't enable circular logging, which is generally considered bad practice).  So you need to run actual backups anyway using Microsoft's built-in NTBACKUP program or a third party solution that is designed for Exchange.  After the backup completes, transaction logs are flushed out.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now