Welcome to MSDN Blogs Sign in | Join | Help

SharePoint Backup Restore, High Availability, and Disaster Recovery

This post has been long comming.  I recently spent some time with Samer Sawaya of SharePoint Recycle bin fame :).  We have some good memories working through that one.  You can thank me later for the 2nd stage not getting cut, I fought hard for that.  We walked through his backup presentation a few weeks ago and remembered I hadn't done any posts on this topic.  Although this has been a hot topic in the past I haven't allocated much time getting up to speed.  I did spend some time with AvePoint at ITForum even got a bite to eat with Y.  Quest's acquisition of Imceda's, and hence SQL Litespeed, adds more to the Quest arsenal of SharePoint tools.  Partners aside, here's a good overview of backup/restore including tools, HA and DR.

 

What to Backup

 

1.     All Servers and all drives in the farm including system state: includes metabase, system state, home directories, web.config, install path, custom assemblies, binaries and code, customizations, site defs, list defs, IIS logs, evt logs, etc… (Doesn’t even need to be daily if this concerns you…)

 

2.     Databases – All your data and 99.97% of config is stored in SQL

 

3.     Index – The index will be propagated to the query servers, but you can’t recover it from there if you have system failure, drive, sector, or file corruption.  The two ways to backup your index is via Stsadm –o backup and with the central admin.  The two can be used interchangeably.

 

 

Tools and APIs

 

·         Native SQL Server Backup & Restore – Native SQL backup can be used to backup all databases (Note: Does not include index (even though you’ll see it can backup the search and SSP database.)  You can even use the jobs to schedule or create some interesting scripts to do multi threaded backups.

 

·         SQL 2005 Database Mirroring – mirrors of your data in another location for location, data, and hardware fault tolerance.  See the White paper: Using database mirroring for details.

 

·         SQL Log Shipping to a Standby farm or server – pretty much the same as with SPS 2003.  You can use this with SQL 2000 or SQL 2005 to a read only SQL box connected to a stand-by farm and fail back or read/write and log ship back.

 

·         SharePoint Backup and Restore (Central Admin) – UI based backup for farm including services like Index… includes full and differential backup. (Requires a full first, to perform any diffs.)

 

·         Stsadm Utility – stsadm –o backup/restore, stsadm –o export/import, the stsadm command is pretty powerful.  You can schedule this with a scheduled task to run nightly, failures will result in an error in the error log which you can capture in MOM or your monitoring environment…  Includes full, differential, partial backups of services or individual web apps, site collections, sites

 

·         VSS Writer – Snapshots can be completed to capture point in time backups of the databases.  (See note in gotchas below.)

 

·         Web delete event— The events are in the system and can be captured.  MS IT has a working prototype of a site and site collection archive on delete solution deployment they plan to share after they "bake it in".

 

·         SharePoint Designer—you can use SharePoint designer as an end user means of backing up a site or site collection.

 

·         Recycle Bin – one of the best new features of the product.  Right out of the box when a web app is created, files, lists, and list items are retained for 30 days (configurable) before deletion.  The second stage, the site collection admin stage allows you to recover documents deleted by users (even the site admin him or herself)

 

·         Migration API (Prime)  – This API is a powerful way to copy (import/export) data with SharePoint Products & Technologies. (see the SDK for more info)

 

·         DPM 2.0 (beta) – Data Protection Manager 2.0 is being designed to backup SharePoint Farms and is early in the beta cycle.  This disk based backup solution is designed for consolidated backup solutions and differencing.  Look for more on this in the future.  (This is a separate Microsoft product, but plans to have a SharePoint solution)

 

High Availability

·         Web Front End: Web front ends can be easily made redundant via load balancing solutions, software, hardware… either work.  Be sure to use sticky sessions and be sure to test forms deployments with your load balancing solutions.  NLB is the most commonly used intranet solution, Cisco Local Director, F5 Big IP, etc… are common hardware load balancers

 

·         Query: Query aka Search Servers are easily redundant through the services built into the product.  All web servers need to communicate to all query servers even if there is a query service local to the box. 

 

·         Index: This is a single point of failure as a service, but if the index box goes down, the users won’t be impacted.  If the index box goes down and you bring it back up service will not be interrupted.  Exceptions to be aware of are if the query box was in the middle of propagation and then the service were to go down.  The query box needs to think it is up to date and has the correct catalogs.  If the query ever thinks it is out of date and is unable to contact the Index box, you will get errors on search requests.  The most creative but ugly scenario for making your index redundant is to create an additional farm that is a single box that has indexing services on it.  That single box farm would have a copy of the index or have it’s own indexing schedule.  Thus if a failure were to happen you could update the connection of the SSP to the other farm.  Not sure who’d do this, but it’s possible.

 

·         SQL – SQL Clustering provides for a high available SQL platform.  Bascially it’s shared disks with failover between systems ensuring fault tolerance to hardware issues.  You can do clusters in either SQL 2000 or SQL 2005.  You can do SQL Log shipping on top of clustering or without it for further fault tolerance and high availability.  SQL Mirroring is another option is you are using SQL 2005 more detail above.

 

Gotchas: (Snipped from Using Backup and Restore (Office SharePoint Server 2007) TechNet article)

STSADM Backup and restore will not backup and *restore* the following:

·         The configuration database

o    Any Custom solutions deployed (be sure to keep the solutions so they can be easily re-deployed)

o    Alternate access mappings

o    The Central Administrator Web Application

o    The Central Administrator content database

o    The Internet Information Services metabase

 

Additional Data on VSS

·         The VSS Writer service needs to be registered using the “stsadm –o registerwssservice” command.

·         The SQL Server VSS Writer service, which is available with SQL Server 2005, needs to be started for the Windows SharePoint Services Writer to work properly. By default this service does not start automatically. For more information about Volume Shadow Copy service (VSS), see Volume Shadow Copy Service Technical Reference and for more information about the SQL Server VSS Writer, see SQL Writer in SQL Server 2005.

 

Additional Resources: 

 

Some Third Party Vendors:

 

AvePoint: Farm and Granular Backup and recovery (see DocAve 4.1 for MOSS 2007 and WSS 3.0)

Commvault: SharePoint Farm backup and granular recovery

Neverfail: High Availability and DR solutions

Quest: Compressed database backup with Litespeed and Recovery Manager (SPS 2003 and MOSS 2007)

Published Friday, March 09, 2007 1:49 AM by joelo

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# End Lands » SharePoint Backup Restore, High Availability, and Disaster Recovery

Wednesday, March 21, 2007 7:26 AM by Terry

# re: SharePoint Backup Restore, High Availability, and Disaster Recovery

I am confused with what to backup with and what is included. I run the usual SQL backups and also backups using stadm for each mysite and for any site collections. But by doing this I cannot understand what the stsadm backup files are giving me that the SQL backup (DBs) dont? Any clarification would be so appreciated.

Wednesday, March 28, 2007 1:03 AM by Rajiv Ranjan Giri

# re: SharePoint Backup Restore, High Availability, and Disaster Recovery

This article looks good but there is nothing on backup restore process. Like i have a sharepoint server 2007(Development) of which i have taken backup and now i want to restore it to some other server (Production) but not able to get any difference after that. However after restore some error occurs for few. But still no change in the site. Even want to deploy by setting the path on both the server that doesnot works please put something on this.

Monday, April 02, 2007 4:45 PM by Joel Oleson's SharePoint Land

# Replication and High Availability

The term replication comes up quite frequently in large deployments. It means a number of things to a

Monday, April 02, 2007 10:15 PM by Brian Montero

# re: SharePoint Backup Restore, High Availability, and Disaster Recovery

Have you taken a look at EMC's entry in this space?  It's called Backup

Manager for SharePoint (it actually came from NSE - SP Manager).  You

have to surf to their backup and recovery page on

http://software.emc.com to find it.  Looks simple - wondered if you had

an opinion.

Tuesday, April 10, 2007 4:29 PM by René

# re: SharePoint Backup Restore, High Availability, and Disaster Recovery

Nice overview, Joel. That's always worth a bookmark!

Friday, May 18, 2007 10:19 AM by Sal

# re: SharePoint Backup Restore, High Availability, and Disaster Recovery

Backup via Central Admin or stsadm.exe looks essential, but offers little for support of Large MOSS installation.  I can see the need for me to be able to spread backups files over multiple volumes/shares.  As it is now, this would be a complete manual process of figuring out what content db to place where.  Is there anyway to spread the entire Farm backup over multiple directory destinations?

Sunday, July 29, 2007 9:03 PM by Joel Oleson's SharePoint Land

# Mirroring, Log Shipping and High Availability resources

Last week at TechReady I attended Mike Watson's and James Petrosky's talk on HA and DR scenarios. Good

Sunday, July 29, 2007 9:43 PM by Noticias externas

# Mirroring, Log Shipping and High Availability resources

Last week at TechReady I attended Mike Watson's and James Petrosky's talk on HA and DR scenarios

Thursday, October 11, 2007 3:27 AM by Joel Oleson's SharePoint Land

# Default Install Configuration

With my focus on Governance I thought about settings and configuration that really should be changed

Thursday, October 11, 2007 8:46 PM by Sharepoint BUZZ

# SharePoint Backup and Restore Tutorial

If you're new here, you may want to subscribe to the SharePoint Buzz RSS feed. Thanks for visiting! This blog posts regular SharePoint 2007 news, updates of web parts, workflows, ideas, collaboration efforts, quick fixes and everything about Microsof..

Friday, October 19, 2007 2:05 AM by Joel Oleson's SharePoint Land

# SharePoint Deployment Essentials and Resources

With a number of recent simplified releases I wanted to share what I'd call the SharePoint Deployment

Thursday, November 08, 2007 3:25 PM by SharePoint From Scratch

# MOSS Backup and Recovery

Our topic currently is backup and recovery. I finally decided to spell backup without a hyphen so now

Wednesday, March 05, 2008 4:25 PM by Alex blog about Microsoft

# MOSS Backup and Restore Tools

There are a lot of ways to backup your MOSS environment. When it comes to Farms you will even need more

Friday, June 27, 2008 2:27 PM by Sanjeev Nair Technical Blog

# SharePoint capacity planning, What every IT manager need to know.

So.. you are an IT Manager and you have been presented with a SharePoint server topology based on a capacity

Monday, August 04, 2008 10:34 AM by SharePoint Thinks, Links and Clinks

# WSS and MOSS Backup, Recovery and Disaster Recovery scenarios

Thinks There are many options available to you for backup, restore and DR of your WSS/MOSS Environment

Monday, October 27, 2008 4:59 PM by Noticias

# Recursos de SharePoint

Excelente lista de recursos creada por Joel Oleson http://blogs.msdn.com/joelo/archive/2007/10/12/sharepoint

Monday, October 27, 2008 5:05 PM by SharePoint

# Recursos de SharePoint

Excelente lista de recursos creada por Joel Oleson http://blogs.msdn.com/joelo/archive/2007/10/12/sharepoint

Tuesday, October 28, 2008 5:28 AM by layali's blog

# SharePoint Tech Readiness links

Information Security and Use Policies Samples Configuration Management Considerations (blog post) Tips

Thursday, December 18, 2008 2:51 PM by Mirrored Blogs

# Troubling MSDN Article Content

Body: Kim Nguyen over at Pariveda shot me an email today asking about some confusing terminology in this

Friday, January 09, 2009 5:46 PM by It's my life... And I live it...

# I was with a customer one day…

And several topics came up so I thought I would post some of them here. Here are some of the counters

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker