I have been asked several times for a Farm backup script and I have been meaning to get to it, so finally here is one I use frequently.
The attached script is one I accumulated through details from various online sources so this blog is designed to be an instructional overview from those posts.
I can obviously not take responsibility for any errors or issues with the script - please read the instructions carefully.
This script has a DAYS ($days variable) setting so you can configure it for how many days back-up you would like to keep and it will delete the old back-ups off disk and also remove them from SharePoint Back-up history as well.....AWESOME.
Steps to get this script running:
NB: A back-up is only as good as it's first restore so test the back-up. (On a TEST server)
A few key points to remember about a Full SharePoint Farm Backup:
A full Farm restore does not put all of the Service Applications and proxies back and does not link them to their proxy group so there are manual steps that need to be taken (Hopefully I will get a chance to cover that in another blog).
To compliment your back-up and effectively back-up your server use BareMetal.
Hi Scott, Thanks for the great post. If you have something on the restore of the farm, that would be great.
Cool thanks, will try and get a gap and post it.
Hi Scott. Will this work for the 2013 SP1 as well?
Hi M, I don't see why not as the script makes use of the standard SharePoint PowerShell backup command. I currently use it for my own SP2013 SP1 farm and have had no issues. I always suggest testing all scripts on test environments to ensure they have
the desired outcome.