Create your own brick-level backup script for Exchange Server 5.5



Similar documents
Exchange Brick-level Backup and Restore

Mailbox Recovery for Microsoft Exchange 2000 Server. Published: August 2000 Updated: July 2002 Applies To: Microsoft Exchange 2000 Server SP3

Exchange Mailbox Protection Whitepaper

Recovering Microsoft Exchange Server Data

Redeploying Microsoft CRM 3.0

Exchange 2003 Single /Mailbox Restore: From an image-level backup. Written By: Ricky El-Qasem Senior Systems Engineer Veeam Software

Personal Archiving in Exchange Online

Management in Today s Regulatory Environment

How to use Data Protector 6.0 or 6.10 with Exchange Recovery Storage Groups to restore a single mailbox

Attix5 Pro Plug-ins. V6.2 User Manual. Cover. for Microsoft Windows. Your guide to installing and using Attix5 Pro plug-ins. Last updated: 2011/10

How To Backup A Database In Navision

User Guide. DocAve Lotus Notes Migrator for Microsoft Exchange 1.1. Using the DocAve Notes Migrator for Exchange to Perform a Basic Migration

How to make a backup copy of a.pst file

Zen Internet. Online Data Backup. Zen Vault Professional Plug-ins. Issue:

4.0. Offline Folder Wizard. User Guide

Microsoft Office 365 online archive features and FAQs

WHITE PAPER ONTRACK POWERCONTROLS. Recovering Microsoft Exchange Server Data

Backup and Recovery in Laserfiche 8. White Paper

EventTracker: Configuring DLA Extension for AWStats Report AWStats Reports

Exchange Mailbox Protection

CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft Exchange

ADMT v3 Migration Guide

Acronis Backup & Recovery Backing Up Microsoft Exchange Server Data

Migrate from Exchange Public Folders to Business Productivity Online Standard Suite

Acronis Backup & Recovery 11.5

Enterprise Vault 6.0. SMTP Archiving

Pimbox Zarafa migration manual. Migration to Pimbox Zarafa

inforouter Version 8.0 Administrator s Backup, Restore & Disaster Recovery Guide

Archive One Policy V4.2 Quick Start Guide October 2005

WHITE PAPER: TECHNICAL OVERVIEW. NetBackup Desktop Laptop Option Technical Product Overview

ShadowProtect Granular Recovery for Exchange Migration Scenarios

Omniquad Exchange Archiving

ADMT v3.1 Guide: Migrating and Restructuring Active Directory Domains

Windows Scheduled Tasks Management Pack Guide for System Center Operations Manager. Published: 07 March 2013

Acronis Backup & Recovery Update 2. Backing Up Microsoft Exchange Server Data

EventTracker: Configuring DLA Extension for AWStats report AWStats Reports

Veritas NetBackup for Microsoft Exchange Server Administrator s Guide

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

Personal Folders Backup

EVault for Data Protection Manager. Course 321 Protecting Exchange 2010 with DPM

Dell Recovery Manager for Exchange 5.6. Product Overview

CommVault Simpana Archive 8.0 Integration Guide

Acronis Backup & Recovery 11.5 Quick Start Guide

Solving.PST Management Problems in Microsoft Exchange Environments

How To Recover From A Disaster In An Exchange 5.5 Server

Acronis Backup Advanced for Exchange. Version 11.5 Update 3. Backing Up Microsoft Exchange Server Data

Version: Page 1 of 5

If you have used Outlook Web Access then you will find Zarafa Webaccess very familiar.

Lepide Exchange Recovery Manager

White Paper. Lepide Software Pvt. Ltd.

Acronis Backup Advanced Version 11.5 Update 6

Pharos Uniprint 8.4. Maintenance Guide. Document Version: UP84-Maintenance-1.0. Distribution Date: July 2013

Sophos Deployment Packager user guide. Product version: 1.2

NetVanta Unified Communications Server Backup and Restore Procedures

VERITAS NetBackup 6.0 for Microsoft Exchange Server

About This Guide Signature Manager Outlook Edition Overview... 5

Using Depositit to Backup Microsoft Exchange Server

Step-by-Step Guide for Microsoft Advanced Group Policy Management 4.0

Project management integrated into Outlook

How To Use Gfi Mailarchiver On A Pc Or Macbook With Gfi From A Windows 7.5 (Windows 7) On A Microsoft Mail Server On A Gfi Server On An Ipod Or Gfi.Org (

While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX

Restoring mailboxes directly into. Exchange Server with BackupAssist. Jason Schultz, Lead Developer BackupAssist

Archive Attender. Version 3.2. White Paper. Archive Attender is a member of the Attender Utilities family.

For Active Directory Installation Guide

Automating client deployment

Archiving User Guide Outlook Plugin. Manual version 3.1

White Paper. Solve Exchange Storage Problems Once and For All. A New Approach without Stubs or Links. By Bob Spurzem. April Mimosa Systems, Inc.

QAD Enterprise Applications. Training Guide Demand Management 6.1 Technical Training

ZCP trunk (build 24974) Zarafa Collaboration Platform. The Migration Manual

Active Directory 2008 Operations

Microsoft Exchange: Preparation for, and speedy recovery of, e Mail messaging & Exchange Data in Microsoft Small Business Server 2003

Backup and Restore with 3 rd Party Applications

How To Back Up Your Pplsk Data On A Pc Or Mac Or Mac With A Backup Utility (For A Premium) On A Computer Or Mac (For Free) On Your Pc Or Ipad Or Mac On A Mac Or Pc Or

Introducing Unlimited* Storage protected and stored for 10 years in

Usage Analysis Tools in SharePoint Products and Technologies

Installing Windows Rights Management Services with Service Pack 2 Step-by- Step Guide

Graves IT Solutions Online Backup System FAQ s

BEST PRACTICES FOR PROTECTING MICROSOFT EXCHANGE DATA

Auto Archiving Folders in Outlook XP

Acronis Recovery TM for Microsoft Exchange TM

SQL Server Database Administrator s Guide

IDERA WHITEPAPER. The paper will cover the following ten areas: Monitoring Management. WRITTEN BY Greg Robidoux

Version 10. IV- Client Software Manual

BackupAssist v6 quickstart guide

Symantec Enterprise Vault

How To Export Data From Exchange To A Mailbox On A Pc Or Macintosh (For Free) With A Gpl Or Ipa (For A Free) Or Ipo (For Cheap) With An Outlook 2003 Or Outlook 2007 (For An Ub

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

Eradicating PST Files from Your Network

BackupAssist Common Usage Scenarios

Symantec Backup Exec 11d for Windows Servers Sets the Standard for Exchange 2007 Server Data Protection

Administration GUIDE. Exchange Database idataagent. Published On: 11/19/2013 V10 Service Pack 4A Page 1 of 233

Archiving in Microsoft Outlook. This document looks at archiving and saving space in the Microsoft Outlook program. INFORMATION SYSTEMS SERVICES

File and Printer Sharing with Microsoft Windows

Pipeliner CRM Phaenomena Guide Opportunity Management Pipelinersales Inc.

Installation and Setup: Setup Wizard Account Information

While You Were Sleeping - Scheduling SAS Jobs to Run Automatically Faron Kincheloe, Baylor University, Waco, TX

Transcription:

Create your own brick-level backup script for Exchange Server 5.5 By Dominic Bosco Every Exchange Organization has its Very Important Mailboxes (VIMs). If you re like most Exchange Administrators, you have a select group of users who have made it perfectly clear that they just can t do without their mailbox s content for any longer than necessary, regardless of whether they deleted the data themselves or whether their server crashed. Wouldn t you sleep easier at night knowing you have a plan and method ready to restore these critical mailboxes at a moment s notice? In this article, we ll discuss select mailbox, or brick-level, backups of Exchange Server Information Stores. Then, we ll show you how to use an NT Shell Script that uses Exchange Administrator and an updated Microsoft Back Office Resource Kit tool to perform an online backup of a select group of mailboxes and archive the data in.pst files on disk. You can then use NTBackup or any other file-level backup utility to back up these.pst files to tape or other media. If you are not familiar with NT Command Shell scripting, see my series of four articles on the subject. Did you miss the previous articles on NT Command Shell scripting? The (script) writing is on the wall (http://techrepublic.com/article.jhtml?id=/column/r00219990913eje01.htm) Use NT command shell to automate admin tasks (http://techrepublic.com/article.jhtml?id=/column/r00219990917eje01.htm) Add reporting functions to scripts using standard output (http://techrepublic.com/article.jhtml?id=/column/r00219991001eje01.htm) Write flexible NT Command Shell scripts (http://techrepublic.com/article.jhtml?id=/column/r00219991020eje02.htm) This article presents advanced scripting techniques and assumes that you are familiar with Exchange Administrator s command-line export option, use of command line tools, and a text editor. No native brick-level backup capability Unfortunately, neither Exchange Server 5.5 nor the Exchange-aware version of NTBackup allows you to back up (or restore) a single or select number of mailboxes. So how do you perform a brick-level backup or restore of an Exchange Server? Well, unless you use a costly 3 rd party Exchange-Aware Backup application or our free script, you ll have to do it the old-fashioned way. If you use NTBackup, you ll first have to perform an online or offline backup to archive your entire Information Store to tape. As you probably know, NTBackup doesn t allow you to back up data disk or other media. Then, when it comes time to restore data from even a single mailbox, you ll need to restore the entire Information Store database from tape, a tedious task. 2001 TechRepublic, Inc. www.techrepublic.com. All rights 1 reserved.

Imagine this brick-level restore scenario where you use NTBackup to back up and restore your Exchange Servers. Suppose a VIP user asks you to restore messages that he permanently deleted from his VIM four days ago. Your Information Store s Deleted Items Retention period is three days, but your tape back retention period is seven days. So, off you go to the tape vault to fetch the last good backup (which is more than four days old) of the IS database containing the mailbox. You must restore this database to a recovery Server that s separated from your Exchange Organization. After completing the tape restore and starting the Information Store (which may take a long time if you have several days' worth of incremental log files to play against the IS), you must run the DS/IS Consistency Adjuster. Then, you must start the Directory Service, create a MAPI profile, and use it to log on to the mailbox and export the data to a.pst file. Finally, you must import the data from the.pst file to the production server that hosts the user s mailbox. As you can see, this process will consume a lot of your time and resources and keep your user waiting all the while. In fact, my experience has shown me that restoring 11-16GB Information Stores in this manner from 4mm DAT cartridges can take 24 hours or longer. Why create your own brick-level solution? There are 3 rd party backup applications that come with software agents that let you perform online brick-level backups of an Exchange Information Store. However, I ve tested these applications and found that they are not only costly, they also have some serious shortcomings. For example, some of the tools won t allow you to restore attachments stored within a message and others do not reliably restore the mailbox data. Because I could not find a 3 rd party brick-level backup utility that met my department s needs or budget, I decided to create my own tool in the form of an NT Shell Script that would use Exchange Administrator and the Exmerge utility from the BORK to back up individual mailboxes. Both of these tools should be readily available to any Exchange Administrator, so implementing this script should require little or no investment. I saw a great advantage in a process that would archive data to disk rather than tape. Once the data was staged to disk, I could use another process (perhaps a nightly backup of shared directories) to back up the staged data to tape, thereby creating a simple but effective Hierarchical Storage Management system. The Swiss Army Knife of Exchange tools Exmerge s primary purpose is to move Exchange Mailboxes between sites, Servers, and Organizations. It provides a programmatic method to perform tasks that would otherwise be very complicated or take a lot of time to do manually. However, the program has many other features and capabilities, and every Exchange administrator would do well to become familiar with them. The BORK 2 included an early version of Exmerge (EXMERGE.EXE). But you ll need to obtain Exmerge version 3.65 from the Microsoft FTP site before implementing the script I present here. Download the file ExMerge3_65Intel_zip_991004.09-42-16 from Microsoft (ftp://ftp.microsoft.com/transfer/outgoing/bussys/mail). Note: Please thoroughly read the documentation that comes with Exmerge. Unintentional misuse of this tool can have disastrous consequences. Like many command-line tools you can run as batch processes, Exmerge uses an initialization file, EXMERGE.INI. EXBRICKBKUP.ZIP includes a sample of this file that you will need to customize before your run EXBRICKBK.CMD. 2001 TechRepublic, Inc. www.techrepublic.com. All rights 2 reserved.

The script s features and requirements For the purpose of demonstration, I ve kept the script as simple as possible. It has two main features. First, the script allows you to easily maintain a list of mailboxes that you need to include in the brick-level backup by simply adding them to a Distribution List of your choice. Second, the script runs Exmerge in batch mode and archives the mailboxes to.pst files in a directory you ve chosen. Please note that the script doesn t have reporting or tape archival features, though you can easily add them if you want. The script requires the following support files to be present in the same directory or in the path: BRICKBKUP.TPL Shown in Listing A and included in EXBRICKBKUP.ZIP. This is a plain text template file that BRICKBKUP.CMD will use to create the Exchange Administrator export file, BRICKBKUP.CSV. BRICKBKUP.OPT Shown in Listing B and included in EXBRICKBKUP.ZIP. This is the options file that Exchange Administrator uses when exporting the membership of the distribution list. Listing A: BRICKBKUP.TPL Obj-Class,Members Listing B: BRICKBKUP.OPT [Export] DirectoryService=<servername> Basepoint=/o=<orgname>/ou=<sitename>/cn=<containername>/cn=BRICKBKMailboxes ExportObject=DL BasepointOnly=Yes MVSeparator=010 Stepping through the script s code First, we ll give you the pseudo-code for the script and then explain how to configure the script s path variables and its support files. The following list steps through the pseudocode for the BRICKBKUP.CMD script: 1) Sets script variables that define the proper paths for the script s runtime environment. 2) Changes to the script s directory. 3) Deletes the old directory export file. 4) Copies the directory export template to create the new directory export file. 5) Runs Exchange Administrator against the designated Directory Server and options file BRICKBKUP.CSV and captures the output to the directory export file, BRICKBKUP.CSV. 6) Parses the BRICKBKUP.CSV and calls a procedure that captures the Distinguished Names of mailboxes that need to be backed up in Exmerge mailbox name file (mailboxes.txt). 7) Runs EXMERGE.EXE against the mailboxes.txt file (specified in EXMERGE.INI) and creates or merges data into each mailbox s.pst file in the Exmergedata directory. 2001 TechRepublic, Inc. www.techrepublic.com. All rights 3 reserved.

Setting the script s environment variables Before using EXBRICKBKUP.CMD, you will need to change three statements that set environment variables at the beginning of the batch file. SET EXMERGE_PATH=<drive letter:\path\directory> - Set this variable to the drive letter and complete path to the directory where you re executing Exmerge. SET ExportSrv=<servername> - Set this variable to the computer name of an Exchange Server in your Organization. SET EXMERGEDATAPATH=<drive letter:\path\directory> - Set this variable to the drive letter and complete path to the directory where you want Exmerge to create the.pst files. Configuring the Exchange Administrator Export Option file The EXBRICKBK.OPT file contains parameters that Exchange Administrator will use to export the membership of the EXBRICKBKMailboxes Distribution List. Set the parameters' values as follows: DirectoryService Change the value of this parameter to the computer name of the server you want to run the Directory Export against. Basepoint Change the value of this parameter to the Distinguished Name for the BRICKBKMailboxes Distribution List. Insert the Organization Name (<orgname>), Site Name (<sitename>), Container Name, (<containername>), and Canonical Name (or alias in this case, BRICKBKMailboxes) where appropriate. ExportObject Leave this value as DL, which indicates that you want to export a Distribution List object. BasepointOnly Leave this value as Yes, which instructs Exchange Administrator to only export the data for the Basepoint that you ve specified. MVSeparator Leave this value as 010, which is the ASCII value for the Line Feed character. Doing so will change Exchange Administrator s multi-value output from comma separated to line feed separated. This allows the script to use the FOR command to parse the file. Configuring the Exmerge Initialization File To make Exmerge function within the EXBRICKBKUP.CMD script, you ll want to change the default values of certain parameters in the EXMERGE.INI initialization files. Open EXMERGE.INI in a standard text editor and change the following parameters: SourceServerName Change the value for this option to the computer name for an Exchange Server in your Organization. LogFileName Change the value for this option to the complete path and filename of the file you want to use to log Exmerge s activity. LoggingLevel Change the value for this option to choose Exmerge s Logging Level. 1 is the lowest and 3 is the highest. DataDirectoryName Change the value for this option to the directory where you want Exmerge to create the.pst files for the selected mailboxes. FileContainingListOfMailboxes Change the value for this option to the complete path and filename for the file that contains the distinguished names Mailboxes.txt file. 2001 TechRepublic, Inc. www.techrepublic.com. All rights 4 reserved.

Implementing the script I recommend that you schedule the EXBRICKBKUP.CMD script to run at least once daily. When you schedule the script using the AT.EXE scheduler, be sure that you ve configured the Schedule Service to run under an account that has the Admin permissions to the mailboxes that you want to back up. Configuring the Schedule Service to run under the Exchange Service Account is probably your best bet. If you re planning on using the script to back up mailboxes in multiple sites that use different Exchange Service Accounts (or that exists in a domain that doesn t trust your domain), you ll need to schedule other instances of EXBRICKBKUP.CMD using a schedule service with the required security credentials to access the mailboxes in other sites. Restoring mailbox data When it comes time to restore mail from a mailbox s.pst file, you ll have several options. You can run Exmerge in normal (as opposed to batch) mode and use its graphical user interface to select the.pst data by a range of dates or other criteria and restore them directly to any production mailbox. Or you can copy the.pst file to the user s local disk or make it available on a network share. Then, instruct the user to add Personal Folders to their Outlook Profile and add the.pst file when they do so. The user can then browse through the.pst file s contents and retrieve the messages they are looking for. Managing the archived data Exmerge does not password-protect the.pst files it creates. Therefore, you ll want to be sure that Exmerge creates the.pst files on a secure file system, such as NTFS, and that you ve configured the directory s share (if any) and user level permissions correctly. Additionally, you ll need to consider how much space is required to store the.pst files and with what frequency you will have to purge the archived.pst files. If there is no corresponding.pst file for the mailbox in the EXMERGEDATA, Exmerge will create a new.pst file for the mailbox by exporting all the mailbox's contents to a newly created.pst file. The.PST file naming convention is <alias>.pst. If a.pst file for the mailbox already exists in the EXMERGEDATA directory, EXMERGE.EXE will export only new message data from the mailbox to the.pst file. Exmerge cannot synchronize the.pst file with the mailbox, it can only add new data to the.pst file which means that the.pst files in the EXMERGEDATA directory can only grow once they've been created. Therefore, you may need to add functionality to EXBKBRICKBKUP.CMD that purges.pst files of a certain age or moves them to another directory so that Exmerge will create new, smaller.pst files when it runs next. When Exmerge exports mailbox data to a.pst file, you lose the benefit of Microsoft Exchange Server s Single-Instance message storage capability. So don t be surprised if a mailbox s newly created.pst file is 10-50% larger than the mailbox itself. To check an individual mailbox s size, open Exchange Administrator, select the Server that hosts the mailbox, and then open Private Information Store Mailbox Properties and locate the mailbox from the list of the server s mailboxes. This document is provided for informational purposes only and TechRepublic makes no warranties, either expressed or implied, in this document. Information in this document is subject to change without notice. The entire risk of the use or the results of the use of this document remains with the user. No association with any real company, organization, product, person or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of TechRepublic. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. 2001 TechRepublic, Inc. www.techrepublic.com. All rights 5 reserved.