In this post we will backup Exchange Server using Windows backup as well as PowerShell and Batch script
-Backup should be created on remote share
-Full backup should be performed
-The backup should be performed locally on the server
-If we chose full VSS backup,log truncation will occur
Checking if Windows backup is installed:
PS C:\Users\Administrator>Get-WindowsFeature -Name *backup* Display Name Name Install State ------------ ---- ------------- [ ] Windows Server Backup Windows-Server-Backup Available
Install it:
PS C:\Users\Administrator>Install-WindowsFeature windows-server-backup
Run GUI (windows server backup)
We can perform one time or scheduled backup,in this example i used scheduled backup:
Select Custom (we will backup only Exchange server data)
I chose to backup logging and database folders
If you want to truncate log files choose Advanced settings and click VSS full backup,othervise,leave VSS copy backup
Set the time at which you want the backup to be performed
Set backup destination
Because we selected VSS full backup,log files are erased
Check backup status:
[PS] C:\Windows\system32>Get-MailboxDatabase -Status | select name,LastFullBackup Name LastFullBackup ---- -------------- bigfirm_db01,on:bigfirm 07.09.2015. 21:57:56
PowerShell alternative:
Instead of GUI,we can use wbadmin utility,create a scheduled task and run it in predefined time
PS C:\Users\Administrator> wbadmin start backup -backuptarget:\\192.168.0.41\backup -user:gordon -password:1234 "-include:C:\Program Files\Microsoft\Exchange Server\V15\Logging,C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\bigfirm_db01*" -vssfull -quiet > C:\Backup.txt
Backup.txt will be created at the end of backup procedure
CMD Batch:
C:\Users\Administrator> wbadmin start backup -backuptarget:\\192.168.0.41\backup -user:gordon -password:1234 -include:"C:\Program Files\Microsoft\Exchange Server\V15\Logging,C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\bigfirm_db01*" -vssfull -quiet > C:\Backup.txt
[…] 10. Exchange Server 2013 backup | geekdudes […]
LikeLike