2. About Me Native of Mumbai, India | Based on Brisbane, Australia Owner / Director - Just SharePoint Consulting | Training - Online and Onsite SharePoint Evangelist Contributing Author – Microsoft SharePoint 2010 Unleashed Blog http://alpesh.nakars.com SharePoint Resource Centre http://justsharepoint.com SharePoint Community URL Shortening Service http://mysp.in
3. Agenda Business Continuity Plan Recovering Content SharePoint Components To Backup Tools to Backup and Restore Backup and Restore Operations Recovering From A Disaster Best Practices
4. Business Continuity Plan Business Requirements RPO, RTO Recovery Needs What’s not enough and what do you need to recover Tools Required
5. Recovering Content Item level recovery At Site Collection or Site level Two options Versioning Recycle Bin Eliminate the need for third-party Recover deleted items easily Reduce overheads
7. What are the Critical SharePoint 2010 Components? SharePoint Databases Config Database (typically excluded) Content Database(s) Services Databases IIS Configuration Web.config files in netpub directory Web part assemblies in %systemroot%ssembly Any custom templates
10. Tools To Backup Two-stage Recycle Bin SharePoint Central Admin Tool PowerShell IISBack.vbs SQL 2005/2008 Tools (Maintenance Plan) Microsoft System Center Data Protection Manager (DPM) 2007/2010 Third-party (Quest, Metalogix, AvePoint)
12. What does the Central Admin Backup Tool do? Full fidelity backups of all SharePoint content and indexes Backs up all SharePoint databases except Config DB, which is not needed. Similar to SQL level backup, except can be more granular at the Web Application level SP2010 now has status indicators SP2010 now allows for Site Collection Backup from Central Admin
14. Disadvantages of Central Admin Backup Tool Not automated If XML catalog is damaged, entire backup can be at risk No item-level restore capabilities Not enterprise level
15. Farm Backup Cannot be scheduled Not rely on SQL DBA for backups Full or differential Backup Components Only 1 Component at a time – e.g. Web Application Configuration Only backup Backup Location Backup to tape not possible
16. Granular Backup/Restore New in SharePoint 2010 Granular Backup/Restore From Central Administration Site Collection Backup Export a site or list Recover data from an unattached content database Granular Backup Job Status indicators Granular restore operations only using PowerShell
17. Site Collection Backup Full Fidelity Backup Largest of the Granular Backups Fastest of the Granular Backups Performance Load Read-Only Lock
18. Export Site / List Exporting List – Max Level of Granular Backup Option to include security permissions set Option to include versions Processor intensive Move Operations
20. PowerShell Backup in SP2010 PowerShell can be used to automate Backups Backup-SPConfigurationDatabase Backup-SPFarm Backup-SPSite Equivalent to Central Admin or STSADM Can pipe out results and backup multiple site collections, etc.
22. PowerShell - Farm Configuration Backup Farm Configuration Only Backup backup-spfarm –backupMethod full –directory servernameP2010Backup -configurationonly Complete Farm Backup backup-spfarm –backupmethod full – directory servernameP2010Backup Backup-SPFarm specific parameters -BackupMethod -BackupThreads
23. PowerShell - Configuration DB Backup Configuration Database Backup backup-spconfigurationdatabase –directory servernamesp2010backup –databaseserver server –databasenamemss_configdb Backup Farm Configuration Information Information Rights Management Workflow Diagnostic logging Customizations [solutions deployed] Outbound e-mail configuration Antivirus settings
24. PowerShell – Site Collection Backup Backup Site Collection backup-spsite–Identity http://justsharepoint.com/Sites/demo -Path servernamep2010backupemosc.bak -Force Other Parameters – -NoSiteLock – use with caution, possible data corruption -UseSQLSnapshot – use content database snapshot when doing a backup Can be run multiple times and/or scripted to automate backups Extremely useful approach to backing up WSS Site collections and personal sites
25. PowerShell – Export Site / List You cannot export a site, library, list with SQL Server or DPM Export-SPWeb –Identity http://justsharepoint.com/sites/demo/ -path serverp2010backupsocationlist.bak -itemurl “location” –force Option to include user security and versions
26. PowerShell - Import Site/List You cannot import a site or a list from SharePoint 2010 Central Administration site PowerShell or STSADM is your only option Site Definition Matching Content Merging
27. Unattached Content Databases New feature of SharePoint 2010 Granular restores of SharePoint content Read-only content databases Restored SharePoint content databases Content database snapshots Restore Site Collections, Sites, Libraries and Lists
30. Using SQL Snapshots New to SharePoint 2010 Use of native SQL Server database snapshots Read-only copy of a database Used primarily with site collection backup Prevents read-only locks Supported only in Enterprise of SQL Server
32. Read Only Database New to SharePoint 2010 Set from SQL Server Prevent changes to SharePoint content database Blanket read only for all, including SharePoint Administrators
34. What are the Critical SharePoint 2010 Components? SharePoint Databases Config Database Content Database(s) Service Application Databases IIS Configuration Web.config files in netpub directory Web part assemblies in %systemroot%ssembly [GAC] Any custom templates SharePoint Root [ The 14 HIVE] Virtual Directories
35. Third-party Backup Solutions Metalogix Selective Restore Manager Quest Recovery Manager for SharePoint DocAveAvePoint Backup for Microsoft Office SharePoint Products and Technologies
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