Monthly Archives: November 2012

Exchange Backup Script

Exchange backup script.  Cheaper than installing a whole backup solution.  Not a pretty howto…

Backs up exchange to a local disk, then copies local files onto a network drive for replication/archive.  E-mail’s resulting log files.

Script is generic, parameters set it for local environment. Script will automatically find Storage Groups and Stores for backup and so will automatically adjust if you add/subtract one.  Parameters are: <local backup path> <network backup path> <SMTP server> <e-mail from address> <e-mail to address>

Take code and paste into a file named something like AwesomeExchangeBackup.ps1 Your scheduled task would look like:

C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile “C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1” -command “C:\Support\Scripts\AwesomeExchangeBackup.ps1 -bpath B:\backup -spath \\isilon45\exchangebackup -eserv autodiscover -efrom -eto”

The link to the code should show up here, but doesn’t seem to want to. You can go here: