Revolving around the core of technology
Document ID: | 2204 |
---|---|
Subject: | How to backup Microsoft Exchange Mailbox - step by step instructions |
Creation date: | 10/24/12 9:34 AM |
Last modified on: | 2/24/16 11:34 AM |
Create a share on the server and grant Exchange Trusted Subsystem read/write permission. In this example, we are using a share called ExchangePST that is referring to C:\ExchangePST folder. See image on the right and click to enlarge.Step 2
We will be using Microsoft Powershell with Exchange shell extensions to extract mailboxes. Functions in Exchange shell extension expects a UNC style path and therefore, it is important to create this share folder. The value of this shared folder goes in Field 2 below and its actual path will go in Field 3
Once this share is created, you should be able to access this folder using the following path:
\\Win2008\ExchangePST
This is assuming the machine name is Win2008. You will have to put the actual value of the host name in Field 1 below.
Next, you will need to grant a user, or group, the Mailbox Import Export role. Backups will run using this user's account. Follow the steps below to accomplish this task:Step 3
- Open Exchange Management Shell on the machine
- Type the following command.
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User YourActiveDirectoryDomain\Administrator
Change the machine and user/group name appropriately in the above command.- Close Exchange Managment Shell by typing the Exit command.
Download necessary scripts by filling out a small form below.Step 4
The downloaded zipped file will contain following files:
- CreateExchangeExport.cmd - Runs Powershell to create PST files. This file is called from Syncrify
- CreateExchangeExport.ps1 - Powershell script
- CleanupExchangeExport.cmd - Optional script that is used to delete the temporary PST files
- RestoreExchange.cmd - Used for restoring mailboxes. See Part II for details.
- RestoreExchange.ps1 - Used for restoring mailboxes. See Part II for details.
- ReadMe.txt - ReadMe text file
Ensure you save these scripts in the folder you specified in Field 5 above. Since these scripts are downloaded from the Internet, the OS won't let you run unless you unblock them.Step 5Once you have completed steps 1, 2 and 3 and have unblocked the scripts, you can double click CreateExchangeExport.cmd file to see if it works. This command should create PST files for every user in your Exchange server to C:\ExchangePST.
- Right click on the .CMD and .PS1 files you downloaded, and select Properties from the popup menu
- Click the Unblock button. Click here for a screen shot.
If you are not able to create PST files, ensure you have successfully completed step 1 and 2.
Now you are ready to configure Syncrify. VERY IMPORTANT: Ensure you are using build 694 or above of Syncrify client in order for the script to work. Using an older client will cause the backup to hang. The script needs to be modified slightly if you are using an older version. Contact our support department if you wish to use an older version of Syncrify client with these scripts.Step 6
- Create a new profile if necessary.
- Add C:\ExchangePST as a top level folder
- Add a Pre-Script and specify CreateExchangeExport.cmd for the script.
- Optionally, add a Post-Script and specify CleanupExchangeExport.cmd for the script. This script will remove the temporary PST files that were created during backup.
- Try running a backup manually
In Step 2 you have to assign a role to a user on Windows. You must use this user to run your backups. This means:The Powershell script will fail if it is run by any other user.
- Run Backup Monitoring Service using this account if you are using the service-based Syncrify Client.
- Specify this user in Windows Scheduler if you are using the Integrated client.
Posted by edan on 2/12/13 7:28 AM
Posted by Tom Betz on 11/13/12 7:47 AM
Posted by claudio on 3/13/13 8:54 AM
Do you have a helpful tip related to this document that you'd like to share with other users?