Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Exchange / Exchange 2013 Mailbox Database Backup with Windows Server Backup

March 31, 2014 Exchange

Exchange 2013 Mailbox Database Backup with Windows Server Backup

To backup Exchange Server 2013 mailbox database, there is a sufficiently large number of specialized software products, each of which has its strengths and weaknesses. However, most of them are paid, and their price is likely to cause substantial blow to the humble IT budget small companies.

Fortunately, you can use the functionality Windows Server Backup (WSB) Features, which is a built-in backup module in Windows Server 2008/2008 R2. Of course, its functionality supports only a limited quantity of functions and is not so convenient in terms of control but at least in case of some emergency allows not remain without an actual backup of users’ mailboxes.

So, we have the following configuration: a network with Exchange Server 2013 mail server (on Windows Server 2008 R2) with one mailbox database. Our task is to configure Exchange 2013 mailbox store backup by using standard Windows tools.

Several major technical issues regarding backup  Exchange 2013 mail databases by means of WSB:

  • Backup is performed with a help of Volume Shadow Copy Service at a volume level completely.
  • Only local backup launch and management are possible
  • Backup copy can be written either on a local disk or over the network to a shared folder
  • It is possible to create only full database backup. Incremental and differential backups are not supported.
  • Only active DAG database backup is possible.

Windows Server Backup feature is not installed in Windows Server 2008 R2 by default. Let’s install this component from the command prompt:

1
2
3
Import-Module ServerManager
 
Add-WindowsFeature "Backup-Features" | Add-WindowsFeature "Backup-Tools"

Import-Module ServerManager Add-WindowsFeature "Backup-Features" | Add-WindowsFeature "Backup-Tools"

Using the following command you can check whether Backup Features component is installed:

1
Get-windowsfeature | where {$_.name -like "*backup*"}

Get-windowsfeature | where {$_.name -like "*backup*"}

install windows server backup feature on windows2008 r2 for exchange 2013

Note. You can also install WSB component from Server Manager GUI:

install wsb from server manager gui

Database backup Exchange 2013 can be configured from the GUI Server Backup or using Powershell. Consider 2 way.

Let’s import Windows Backup commands in Powershell session:

1
add-pssnapin windows.serverbackup

add-pssnapin windows.serverbackup

Create new backup policy which will include all backup parameters and update schedule:

1
$WBPolicyExch = New-WBPolicy

$WBPolicyExch = New-WBPolicy

Assign a drive on which Exchange mail database will be stored ( in our example it’s E:\)

1
$BackupSrc = New-WBFileSpec –FileSpec E:\

$BackupSrc = New-WBFileSpec –FileSpec E:\

Add the drive to the policy

1
Add-WBFileSpec –Policy $WBPolicyExch –FileSpec $BackupSrc

Add-WBFileSpec –Policy $WBPolicyExch –FileSpec $BackupSrc

Assign a drive or network share, where backup will be stored (don`t assign a system drive or the same drive with a database) :

1
$WBTargetFolder = New-WBbackupTarget –NetworkPath "\\ny-srvbkp\exchange2013"

$WBTargetFolder = New-WBbackupTarget –NetworkPath "\\ny-srvbkp\exchange2013"

Add backup device to the policy

1
Add-WBBackupTarget –Policy $WBPolicyExch -Target $WBTargetFolder

Add-WBBackupTarget –Policy $WBPolicyExch -Target $WBTargetFolder

Assign that VSS Full Backup procedure will be used for backup

1
Set-WBVssBackupOptions -Policy $WBPolicyExch -VssFullBackup

Set-WBVssBackupOptions -Policy $WBPolicyExch -VssFullBackup

Check the policy for errors

1
$WBPolicyExch

$WBPolicyExch

Check mail database status before backup start:

1
Get-MailboxDatabase mdb001 –Status

Get-MailboxDatabase mdb001 –Status

get last full backup status in exchange 2013

In this case we can see that mailbox database backup was never performed before.

You can start Exchange 2013 mail database backup immediately

1
Start-WBBackup -Policy $WBPolicyExch

Start-WBBackup -Policy $WBPolicyExch

Or according to the schedule:

1
Set-WBSchedule –Policy $WBPolicyExch –Schedule 22:00

Set-WBSchedule –Policy $WBPolicyExch –Schedule 22:00

start backup of exchange 2013 mailbox database

After backup completion WSB will update mail database header and write information about the time of the last successful backup in it.

1
Get-MailboxDatabase mdboo1 -Status | select Lastfullbackup

Get-MailboxDatabase mdboo1 -Status | select Lastfullbackup

exchange 2013 get backup status

To display backup list use the following:

1
Get-WBBackupSet

Get-WBBackupSet

Use the following to get the last backup task status:

1
Get-WBJob -previous 1

Get-WBJob -previous 1

Note. After mail database backup completion all Exchange transactions logs are deleted, clearing additional space on  a drive. How to manually purge and move Exchange 2013 Server Logs

In the next article in this series we show how to recover Exchange 2013 database from backup.

0 comment
0
Facebook Twitter Google + Pinterest
previous post
Active Directory: Managed Service Accounts
next post
Windows XP. End of Support Notification

Related Reading

How to Cleanup, Truncate or Move Log Files...

March 16, 2021

How to Create and Manage Distribution Groups (Lists)...

March 11, 2021

Get-MessageTrackingLog: Search Message Tracking Logs on Exchange Server

December 19, 2019

Managing Exchange Mailbox Inbox Rules with PowerShell

August 29, 2019

Fix: Outlook 2016/2013 Always Starts in Offline Mode

July 30, 2019

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • How to Disable NetBIOS and LLMNR Protocols in Windows Using GPO?

    April 9, 2021
  • Enable Windows Lock Screen after Inactivity via GPO

    April 8, 2021
  • How to Create and Manage Scheduled Tasks with PowerShell?

    April 7, 2021
  • Updating Windows VM Templates on VMWare with PowerShell

    April 5, 2021
  • Running Multiple IIS Websites on the Same Port or IP Address

    April 1, 2021
  • Can’t Copy and Paste via Remote Desktop (RDP) Clipboard

    March 31, 2021
  • UAC: This App Has Been Blocked for Your Protection on Windows 10

    March 30, 2021
  • How to Unlock a File Locked by Any Process or SYSTEM?

    March 29, 2021
  • Configuring a Domain Password Policy in the Active Directory

    March 26, 2021
  • Using Native Package Manager (WinGet) on Windows 10

    March 24, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Manage Domains and Email Address Whitelist in Exchange Server 2013
  • How to delete default database in Exchange 2010/2013
  • Exchange 2013 Database Recovery
  • Full Mailbox and Single Item Recovery in Exchange 2013
  • Exchange 2013: MAPI over HTTP
  • How to Hide Users from Exchange Distribution Group
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top