Backup and Restore for SharePoint 2010<br />Michael Noel<br />Convergent Computing<br />Twitter: @MichaelTNoel<br />
Michael Noel<br />Author of SAMS Publishing titles “SharePoint 2010 Unleashed,” “SharePoint 2007 Unleashed,” “SharePoint 2...
What we will cover<br />What SharePoint Components need to be backed up<br />Built-in SharePoint Backup Tools<br />Central...
SharePoint Critical Components for Backup<br />
What are the Critical SharePoint 2010 Components?<br />SharePoint Databases<br />Config Database (typically excluded)<br /...
Understanding the SP2010 DatabasesSharePoint 2010 Databases (Part I)<br />
Understanding the SP2010 DatabasesSharePoint 2010 Databases (Part II)<br />
What are the Backup Tools?<br />Two-stage Recycle Bin<br />SharePoint Central Admin Tool<br />PowerShell<br />STSADM<br />...
Backup with the SharePoint Central Admin Tool<br />
What does the Central Admin Backup Tool do?<br />Full fidelity backups of all SharePoint content and indexes<br />Backs up...
Disadvantages of Central Admin Backup Tool<br />Not automated<br />If XML catalog is damaged, entire backup can be at risk...
PowerShell Backups<br />
STSADM Command Line Backups<br />
PowerShell Backup in SP2010<br />PowerShell can be used to automate Backups<br />Backup-SPConfigurationDatabase<br />Backu...
STSADM Backup Methods<br />‘Catastrophic’ Backup – command-line version of SharePoint Central Admin Tool<br />Stsadm –o ba...
STSADM ‘Catastrophic’ Backup<br />Replaces Central Admin Backup, so can be scripted<br />Used for full farm recovery<br />...
STSADM Site Collection Backup<br />Full fidelity backup of individual Site Collections to flat files<br />Enumerates a lis...
STSADM Site Collection Backup<br />Example Syntax:<br />Stsadm.exe –o backup –url http://localhost/sites/marketing -filena...
STSADM Site Collection Restore<br />Stsadm.exe –o restore –url http://localhost/sites/marketing -filename C:Backupmarketin...
STSADM Sub-Web Exports<br />Partial Fidelity move of specific sets of content (i.e. doclibs, sites, etc.)<br />Sample synt...
Internet Information Services Backups<br />
IISBack.VBS Tool<br />Exports out the metaverseconfig of IIS<br />Should be used before any Virtual Server configuration c...
How to backup the IIS Config<br />Run the script using the command line cscript, i.e.:<br />Cscript c:windowssystem32iisba...
SQL Maintenance Plan Backups<br />
Backing up using SQL Tools<br />SQL 2005/2008 Management Studio or SQL 2000 Enterprise Manager can be used to backup all D...
SharePoint Designer Exports<br />
SharePoint Designer 2007 Backup and Restore<br />Performs a partial fidelity backup of a SharePoint Site<br />Some securit...
System Center Data Protection Manager 2010<br />
Features of DPM for SharePoint<br />Item-level recovery of Documents and List Data<br />VSS Snapshot Integration, can snap...
DPM Backing up a SharePoint Farm<br />System State<br />Internet InformationServices (IIS)“Front End”<br />SharePoint VSS ...
Architecting a DPM 2010 Environment for SharePoint<br /><ul><li>64bit Console (Windows Server 2008 or Windows Server 2008 R2)
Single console, no built-in redundancy
Attach large pool of disk to server for near-term backups
Attach supported tape library for long-term backups
Console requires location to store SQL database, can be local SQL Server Express or remote SQL.  Critical DB, must be back...
For backups of the console, use a second DPM Server that will backup the first (DPM SRT being retired)</li></li></ul><li>R...
Recovery Point volume also requierd for each ‘unit’, such as farm
Plan for 3x-4x the amount of space in DPM as exists in SharePoint
Replica volume must be as large as you think the content will grow.
Recovery Point volume must be as the data churn multiplied by the time you keep the data on disk.</li></li></ul><li>DPM Li...
Standard Edition License – One license for each file server or non-application server.
Enterprise Edition License – One for each server that runs the following:
SharePoint (One front-end generally)
SQL (each cluster node requires a license)
Upcoming SlideShare
Loading in …5
×

Sps baltimore backupand_restore-dpm

1,365 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,365
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sps baltimore backupand_restore-dpm

  1. 1. Backup and Restore for SharePoint 2010<br />Michael Noel<br />Convergent Computing<br />Twitter: @MichaelTNoel<br />
  2. 2. Michael Noel<br />Author of SAMS Publishing titles “SharePoint 2010 Unleashed,” “SharePoint 2007 Unleashed,” “SharePoint 2003 Unleashed”, “Teach Yourself SharePoint 2003 in 10 Minutes,” “Windows Server 2008 R2 Unleashed,” “Exchange Server 2010 Unleashed”, “ISA Server 2006 Unleashed”, and many other titles .<br />Partner at Convergent Computing (www.cco.com / +1(510)444-5700) – San Francisco, U.S.A. based Infrastructure/Security specialists for SharePoint, AD, Exchange, Security<br />
  3. 3. What we will cover<br />What SharePoint Components need to be backed up<br />Built-in SharePoint Backup Tools<br />Central Admin Backup<br />STSADM Backup Methods<br />SQL Maintenance Jobs<br />Introduction to System Center Data Protection Manager (DPM) 2010<br />How Does DPM Work?<br />In Depth Look at What is Needed to Architect a DPM Environment.<br />
  4. 4. SharePoint Critical Components for Backup<br />
  5. 5. What are the Critical SharePoint 2010 Components?<br />SharePoint Databases<br />Config Database (typically excluded)<br />Content Database(s)<br />Services Databases<br />IIS Configuration<br />Web.config files in inetpub directory<br />Web part assemblies in %systemroot%assembly<br />Any custom templates<br />
  6. 6. Understanding the SP2010 DatabasesSharePoint 2010 Databases (Part I)<br />
  7. 7. Understanding the SP2010 DatabasesSharePoint 2010 Databases (Part II)<br />
  8. 8. What are the Backup Tools?<br />Two-stage Recycle Bin<br />SharePoint Central Admin Tool<br />PowerShell<br />STSADM<br />SharePoint Designer <br />IISBack.vbs<br />SQL 2005/2008 Tools (Maintenance Plan)<br />Microsoft System Center Data Protection Manager (DPM) 2007/2010<br />Third-party (Quest, Metalogix, AvePoint)<br />
  9. 9. Backup with the SharePoint Central Admin Tool<br />
  10. 10. What does the Central Admin Backup Tool do?<br />Full fidelity backups of all SharePoint content and indexes<br />Backs up all SharePoint databases except Config DB, which is not needed.<br />Similar to SQL level backup, except can be more granular at the Web Application level<br />SP2010 now has status indicators<br />SP2010 now allows for Site Collection Backup from Central Admin<br />
  11. 11. Disadvantages of Central Admin Backup Tool<br />Not automated<br />If XML catalog is damaged, entire backup can be at risk<br />No item-level restore capabilities<br />Not enterprise level<br />
  12. 12. PowerShell Backups<br />
  13. 13. STSADM Command Line Backups<br />
  14. 14. PowerShell Backup in SP2010<br />PowerShell can be used to automate Backups<br />Backup-SPConfigurationDatabase<br />Backup-SPFarm<br />Backup-SPSite<br />Equivalent to Central Admin or STSADM<br />Can pipe out results and backup multiple site collections, etc.<br />
  15. 15. STSADM Backup Methods<br />‘Catastrophic’ Backup – command-line version of SharePoint Central Admin Tool<br />Stsadm –o backup –directory C:BackupFarm –backupmethod FULL<br />Site Collection Backup – Full fidelity backup of individual Site Collections<br />Stsadm –o backup –url http://home.companyabc.com/sites/site1 -filename C:BackupSitessite1.bak -overwrite<br />Sub-Web Export – Partial fidelity export of individual sites, doclibs, and subwebs<br />Stsadm –o export<br />
  16. 16. STSADM ‘Catastrophic’ Backup<br />Replaces Central Admin Backup, so can be scripted<br />Used for full farm recovery<br />Catastrophic Backup/Restore sample syntax:<br />Stsadm –o backup –directory <directory> <br />-backupmethod <full or differential><br />Stsadm –o restore –directory <directory> <br />-restoremethod <new or overwrite><br />
  17. 17. STSADM Site Collection Backup<br />Full fidelity backup of individual Site Collections to flat files<br />Enumerates a list of the available sites with the /enumsites option<br />Can be run multiple times and/or scripted to automate backups<br />Extremely useful approach to backing up WSS Site collections and personal sites<br />
  18. 18. STSADM Site Collection Backup<br />Example Syntax:<br />Stsadm.exe –o backup –url http://localhost/sites/marketing -filename C:ackupmarketing.dat<br />STSADM will backup the entire site collection to a single flat file<br />Doesn’t scale to very large site collections though<br />
  19. 19. STSADM Site Collection Restore<br />Stsadm.exe –o restore –url http://localhost/sites/marketing -filename C:Backupmarketing.dat -overwrite<br />Restore over existing Site<br />Restore to alternate location<br />Create parallel portal on same server<br />Restore to different server with certain restrictions<br />
  20. 20. STSADM Sub-Web Exports<br />Partial Fidelity move of specific sets of content (i.e. doclibs, sites, etc.)<br />Sample syntax:<br />Stsadm –o export –url http://home.companyabc.com/sites/site1/subsite2 -filename C:ackupExportsubsite2.bak<br />Stsadm –o import –url http://home.companyabc.com/sites/site1/subsite2 -filename C:ackupExportsubsite2.bak<br />
  21. 21. Internet Information Services Backups<br />
  22. 22. IISBack.VBS Tool<br />Exports out the metaverseconfig of IIS<br />Should be used before any Virtual Server configuration change or service pack application<br />Used to restore specific virtual server configuration<br />Can be scripted<br />
  23. 23. How to backup the IIS Config<br />Run the script using the command line cscript, i.e.:<br />Cscript c:windowssystem32iisback.vbs /backup /b SPSVSBCK /overwrite<br />The backup can be copied to a different location, copy all files in the C:Windowssystem32Metaback directory that are named what the backup was (i.e. SPSVSBCK.*)<br />
  24. 24. SQL Maintenance Plan Backups<br />
  25. 25. Backing up using SQL Tools<br />SQL 2005/2008 Management Studio or SQL 2000 Enterprise Manager can be used to backup all Databases<br />Same as Central Admin Backup, but only backs up SQL databases, not index<br />Can be scheduled as part of a SQL Maintenance Plan<br />Can backup as Full, Differential, or Incremental<br />Can backup Config DB, but normally not needed (only supported scenario is during a SAN Snapshot)<br />
  26. 26. SharePoint Designer Exports<br />
  27. 27. SharePoint Designer 2007 Backup and Restore<br />Performs a partial fidelity backup of a SharePoint Site<br />Some security is lost, such as item level security<br />Individual elements (such as document libraries, lists, etc) can be exported from the File – Export – Personal Web Package interface.<br />
  28. 28. System Center Data Protection Manager 2010<br />
  29. 29. Features of DPM for SharePoint<br />Item-level recovery of Documents and List Data<br />VSS Snapshot Integration, can snapshot SQL Databases every 15 minutes<br />Backup to Disk (near-term), Backup to Tape (long-term) – Direct integration<br />Not only SharePoint, but File Data, Exchange, SQL, and Bare-metal recovery<br />
  30. 30. DPM Backing up a SharePoint Farm<br />System State<br />Internet InformationServices (IIS)“Front End”<br />SharePoint VSS Writer<br />“Farm” Config dB<br />(SQL)<br />DPM 2007<br />SQL<br />SQL<br />SQL<br />Files<br />Enterprise Search (index)<br />Content Servers (SQL)<br />
  31. 31. Architecting a DPM 2010 Environment for SharePoint<br /><ul><li>64bit Console (Windows Server 2008 or Windows Server 2008 R2)
  32. 32. Single console, no built-in redundancy
  33. 33. Attach large pool of disk to server for near-term backups
  34. 34. Attach supported tape library for long-term backups
  35. 35. Console requires location to store SQL database, can be local SQL Server Express or remote SQL. Critical DB, must be backed up also.
  36. 36. For backups of the console, use a second DPM Server that will backup the first (DPM SRT being retired)</li></li></ul><li>Replica Volumes and Recovery Point Volumes<br /><ul><li>Replica volume required for each ‘unit’ that is being backed up
  37. 37. Recovery Point volume also requierd for each ‘unit’, such as farm
  38. 38. Plan for 3x-4x the amount of space in DPM as exists in SharePoint
  39. 39. Replica volume must be as large as you think the content will grow.
  40. 40. Recovery Point volume must be as the data churn multiplied by the time you keep the data on disk.</li></li></ul><li>DPM Licensing<br /><ul><li>Check with local MS first!
  41. 41. Standard Edition License – One license for each file server or non-application server.
  42. 42. Enterprise Edition License – One for each server that runs the following:
  43. 43. SharePoint (One front-end generally)
  44. 44. SQL (each cluster node requires a license)
  45. 45. Exchange (MB Servers)
  46. 46. Any system that is backed up by the SRT, this may include the DPM Console
  47. 47. Generally cost competitive…
  48. 48. Virtualization Licensing Options…</li></li></ul><li>DPM Agent Installation<br />To protect a farm, DPM needs to install the agent on the following servers<br />Any Web front end server(that is used to invoke the writer) This can be a dedicated server in larger farms.<br />The Index Server<br />All back end SQL servers<br />After agent installation, run ‘Configuresharepoint.exe –EnableSharePointProtection’ on SP Server from DPM Server directory<br />
  49. 49. DPM Agent Guest Prerequisites<br />Windows Server 2008, 2003 SP1 or SP2<br />Microsoft KB Patch 940349 (VSS Writer)<br />SQL Servers<br />SQL 2000 SP4, SQL 2005 SP1/SP2, SQL 2008 (Experimental support)<br />SQL VSS Writer service must be running<br />SharePoint Web Frontend(s)<br />KB Patch 941422 Installed (on legacy SP)<br />WSS VSS Writer Service running<br />Run ConfigureSharePoint.exe tool to give farm credentials<br />
  50. 50. DPM Protection – Key Features<br />DPM protects the entire farm data by a single check box<br />DPM leverages the WSS writer to determine all the components to back up<br />At the time of backup, DPM works across multiple servers in the farm and backs up the data from across all these servers<br />DPM only performs express full backups for SharePoint<br />After the backup is done, DPM queries the SharePoint object model to get all the information about the sites, items, etc.<br />DPM 2010 does not require Recovery Farm!<br />
  51. 51. SharePoint Recovery<br />The Entire Farm<br />“Farm” Config dB<br />(SQL)<br />Entire Farm<br />DPM 2007<br />Enterprise Search (index)<br />Content Servers (SQL)<br />
  52. 52. SharePoint Recovery<br />The Entire Farm<br />A Content DB<br />“Farm” Config dB<br />(SQL)<br />Content DB information<br />DPM 2007<br />Content DB<br />Enterprise Search (index)<br />Content Servers (SQL)<br />
  53. 53. SharePoint Recovery<br />The Entire Farm<br />A Content DB<br />Site Collection<br />A Site<br />Document<br />Site Collection / Site / Individual Document<br />“Farm” Config dB<br />(SQL)<br />DPM 2007<br />DPM handles restore thru Recovery Farm to production Farm<br />Farm then redirects data to appropriate content database and site<br />Enterprise Search (index)<br />Content Servers (SQL)<br />
  54. 54. Key Benefits of DPM 2010<br />Near zero data loss for Exchange Server, SQL Server,and SharePoint Server<br />Seamless disk-to-disk-to-tape for backups <br />Recoveries within minutes instead of hours<br />Unified policy allows protection of multiple data types to any media – in one schedule and with common tuning options<br />Eliminate the backup window of your production servers<br />Shrink potential data loss down to 15 minutes<br />Application recovery direct from backup UI – no pre-staging <br />Enable end-users to perform their own recoveries (file servers only)<br />Remove tapes from branch officesand centralize backups at the datacenter<br />Better Admin in 2010 (Auto Consistency checks, auto resizing of volumes<br />
  55. 55. Demo<br />Taking a look at DPM 2010 for SharePoint 2010 Backup<br />
  56. 56. Third-party Backup Solutions<br />Metalogix Selective Restore Manager<br />Quest Recovery Manager for SharePoint<br />DocAve AvePoint Backup for Microsoft Office SharePoint Products and Technologies<br />Commvault Galaxy Data Protection<br />Symantec Backup Exec/NetBackup<br />Many others…<br />Provide for item-level recovery and complex DR scenarios<br />
  57. 57. Session Summary<br />Examine existing tools to backup and restore SharePoint, but understand their limitations.<br />Use STSADM Site Collection backup if needing to move Site Collections between farms<br />Consider the use of DPM 2010 for item level recovery and snapshot capabilities<br />
  58. 58. Thanks for attending!Questions?<br />Michael Noel<br />Twitter: @MichaelTNoel<br />www.cco.com<br />

×