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 firstname.lastname@example.org -eto email@example.com”
The link to the code should show up here, but doesn’t seem to want to. You can go here: http://snipt.org/znA8