• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Create script that will copy the exchange data store

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?
0
Lawrencejr
Asked:
Lawrencejr
  • 2
1 Solution
 
mds-cosCommented:
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.
0
 
LawrencejrAuthor Commented:
would tape backup work?
0
 
mds-cosCommented:
...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.
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now