[Tech.Ed India 2011] Backup and Restore SharePoint 2010


Published on

My session slides from Tech.Ed India 2011, SharePoint 2010 Backup and Restore Session.

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • PlanningRecovering ContentSharePoint ComponentsTools available to backup and restoreBackup and Restore OperationsRecovering From A DisasterBest Practices
  • You can use the built in backup tools in CA in SharePoint 2010 to back up a farm up to 200GB in size. It supports full and differential and can be used to restore an entire farm.
  • Granular backup of SharePoint 2010, previously available only from the STSADM command-line tool, is now available from within the GUI.
  • At the time when this chapter was written, Microsoft’s TechNet site included a specificnote stating that site collection backups did not include workflow information. This note isincorrect. Backups that are performed with the site collection backup approach are full-fidelityand contain all workflow information, including workflow history and workflow state. Thenote was originally intended as a warning for exports that are performed with granular exportoperations through types within the Content Deployment API, not site collection backups.Slower then Content Database Backups
  • [twitter]#SharePoint 2010 Management Shell – gives additional options for backup/restore – compression/sql snapshots [/twitter][twitter]Permissions required to run PowerShell – member of the admin group on the server running Central Admin[/twitter]
  • Versions – last major, current version, last major and minor, all
  • Can use –UseSqlsnapshot for Export-SPWeb
  • Backup Server:81/Sites/Demo
  • [Tech.Ed India 2011] Backup and Restore SharePoint 2010

    1. 1. SharePoint 2010 – Backup and Restore<br />Alpesh Nakar<br />
    2. 2. About Me<br />Native of Mumbai, India | Based on Brisbane, Australia<br />Owner / Director - Just SharePoint Consulting | Training - Online and Onsite<br />SharePoint Evangelist <br />Contributing Author – Microsoft SharePoint 2010 Unleashed<br />Blog http://alpesh.nakars.com<br />SharePoint Resource Centre http://justsharepoint.com<br />SharePoint Community URL Shortening Service http://mysp.in<br />
    3. 3. Agenda<br />Business Continuity Plan<br />Recovering Content<br />SharePoint Components To Backup<br />Tools to Backup and Restore<br />Backup and Restore Operations<br />Recovering From A Disaster<br />Best Practices<br />
    4. 4. Business Continuity Plan<br />Business Requirements<br />RPO, RTO<br />Recovery Needs<br />What’s not enough and what do you need to recover<br />Tools Required<br />
    5. 5. Recovering Content<br />Item level recovery<br />At Site Collection or Site level<br />Two options<br />Versioning<br />Recycle Bin<br />Eliminate the need for third-party<br />Recover deleted items easily<br />Reduce overheads<br />
    6. 6. Backup Critical SharePoint Components<br />
    7. 7. 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 />
    8. 8. Understanding the SP2010 DatabasesSharePoint 2010 Databases (Part I)<br />
    9. 9. Understanding the SP2010 DatabasesSharePoint 2010 Databases (Part II)<br />
    10. 10. Tools To Backup<br />Two-stage Recycle Bin<br />SharePoint Central Admin Tool<br />PowerShell<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 />
    11. 11. Backup with the SharePoint 2010 Central Administration site<br />
    12. 12. 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 />
    13. 13. SharePoint 2010: Central Administration <br />
    14. 14. 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 />
    15. 15. Farm Backup<br />Cannot be scheduled<br />Not rely on SQL DBA for backups<br />Full or differential<br />Backup Components Only<br />1 Component at a time – e.g. Web Application<br />Configuration Only backup<br />Backup Location<br />Backup to tape not possible<br />
    16. 16. Granular Backup/Restore<br />New in SharePoint 2010 <br />Granular Backup/Restore From Central Administration<br />Site Collection Backup<br />Export a site or list<br />Recover data from an unattached content database<br />Granular Backup Job Status indicators<br />Granular restore operations only using PowerShell<br />
    17. 17. Site Collection Backup <br />Full Fidelity Backup<br />Largest of the Granular Backups<br />Fastest of the Granular Backups<br />Performance Load<br />Read-Only Lock<br />
    18. 18. Export Site / List<br />Exporting List – Max Level of Granular Backup<br />Option to include security permissions set<br />Option to include versions<br />Processor intensive<br />Move Operations<br />
    19. 19. Using SharePoint 2010 Management Shell for Backup & Restore<br />
    20. 20. 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 />
    21. 21. PowerShell Backup & Restore CMDLETS<br />
    22. 22. PowerShell - Farm Configuration Backup<br />Farm Configuration Only Backup<br />backup-spfarm –backupMethod full –directory servernameSP2010Backup -configurationonly<br />Complete Farm Backup<br />backup-spfarm –backupmethod full – directory servernameSP2010Backup<br />Backup-SPFarm specific parameters<br />-BackupMethod<br />-BackupThreads<br />
    23. 23. PowerShell - Configuration DB Backup<br />Configuration Database Backup<br />backup-spconfigurationdatabase –directory servernamesp2010backup –databaseserver server –databasenamemss_configdb<br />Backup Farm Configuration Information<br />Information Rights Management<br />Workflow<br />Diagnostic logging<br />Customizations [solutions deployed]<br />Outbound e-mail configuration<br />Antivirus settings<br />
    24. 24. PowerShell – Site Collection Backup<br />Backup Site Collection<br />backup-spsite–Identity http://justsharepoint.com/Sites/demo -Path servernamesp2010backupdemosc.bak -Force<br />Other Parameters – <br />-NoSiteLock – use with caution, possible data corruption<br />-UseSQLSnapshot – use content database snapshot when doing a backup<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 />
    25. 25. PowerShell – Export Site / List<br />You cannot export a site, library, list with SQL Server or DPM<br />Export-SPWeb –Identity http://justsharepoint.com/sites/demo/ -path serversp2010backupslocationlist.bak -itemurl “location” –force<br />Option to include user security and versions<br />
    26. 26. PowerShell - Import Site/List<br />You cannot import a site or a list from SharePoint 2010 Central Administration site<br />PowerShell or STSADM is your only option<br />Site Definition Matching<br />Content Merging<br />
    27. 27. Unattached Content Databases<br />New feature of SharePoint 2010<br />Granular restores of SharePoint content<br />Read-only content databases<br />Restored SharePoint content databases<br />Content database snapshots<br />Restore Site Collections, Sites, Libraries and Lists<br />
    28. 28. DEMO<br />Recover from Unattached Content Database<br />
    29. 29. Export a ListMerge a List<br />DEMO<br />
    30. 30. Using SQL Snapshots<br />New to SharePoint 2010<br />Use of native SQL Server database snapshots<br />Read-only copy of a database<br />Used primarily with site collection backup<br />Prevents read-only locks <br />Supported only in Enterprise of SQL Server<br />
    31. 31. DEMO<br />SharePoint Site Collection Backup Using SQL SnapShot<br />
    32. 32. Read Only Database<br />New to SharePoint 2010<br />Set from SQL Server<br />Prevent changes to SharePoint content database<br />Blanket read only for all, including SharePoint Administrators<br />
    33. 33. Read Only Database<br />
    34. 34. What are the Critical SharePoint 2010 Components?<br />SharePoint Databases<br />Config Database<br />Content Database(s)<br />Service Application Databases<br />IIS Configuration<br />Web.config files in inetpub directory<br />Web part assemblies in %systemroot%assembly [GAC]<br />Any custom templates<br />SharePoint Root [ The 14 HIVE]<br />Virtual Directories <br />
    35. 35. Third-party Backup Solutions<br />Metalogix Selective Restore Manager<br />Quest Recovery Manager for SharePoint<br />DocAveAvePoint Backup for Microsoft Office SharePoint Products and Technologies<br />
    36. 36. Questions?<br />
    37. 37. Resources<br />Software Application Developers<br />http://msdn.microsoft.com/<br />Infrastructure Professionals<br />http://technet.microsoft.com/<br />technetindia<br /> msdnindia<br />@technetindia<br />@msdnindia<br />
    38. 38. © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.<br />The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.<br />