SharePoint 2010 – Backup and Restore Alpesh Nakar.
-
Upload
adam-george -
Category
Documents
-
view
225 -
download
4
Transcript of SharePoint 2010 – Backup and Restore Alpesh Nakar.
About Me
Owner / Director - Just SharePoint Consulting | Training - Online and Onsite
Native of Mumbai, India | Based on Brisbane, Australia
SharePoint Evangelist
Contributing Author – Microsoft SharePoint 2010 Unleashed
Blog http://alpesh.nakars.com
SharePoint Resource Centre http://justsharepoint.comSharePoint Community URL Shortening Service http://mysp.in
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
Business Continuity Plan
• Business Requirements– RPO, RTO
• Recovery Needs–What’s not enough and what do you
need to recover
• Tools Required
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
What are the Critical SharePoint 2010 Components?
• SharePoint Databases– Config Database (typically excluded)– Content Database(s)– Services Databases
• IIS Configuration• Web.config files in \inetpub directory• Web part assemblies in %systemroot%\assembly• Any custom templates
Understanding the SP2010 Databases
SharePoint 2010 Databases (Part I)•Stores farm configuration data•Mostly unchanged from 2007 ConfigDBConfig•Used to store documents, sites, lists, etc.•Mostly unchanged from 2007, Central Admin also has Content DBContent•Used by Usage and Health Data Collection Service•Temporarily stores health monitoring and usage data for use in reportsLogging•Created for the Search Service, 2007 equivalent was SSP DB•One Admin DB created per Search applicationAdministration•Also used for Search Service•Stores crawled propertiesProperty•Also used for Search Service, 2007 equivalent was Search DB•Drives crawl component, hosts crawled dataCrawl•Used by Web Analytics Service to analyze traffic•Stores fact data, queued batch data, and asset metadataStaging•Also used by Web Analytics Service•Stores report data, diagnostics info, etc.Reporting
Understanding the SP2010 Databases
SharePoint 2010 Databases (Part II)•Used by Managed Metadata Service• Stores Managed Metadata for use data layerTerm Store•Used by the State Service• Stores temporary state info for InfoPath Forms ServicesState•Part of the User Profile Service• Stores user and associated informationProfile•Used by User Profile Service• Stores Configuration and Staging Data for Prof SyncSynchronization•Also used by User Profile Service• Stores social tags and notes from usersSocial Tagging•Used by Business Connectivity Service to store external objectsBCS•Used by Secure Store Service to map credentials•Replaces SSO DB in 2007, can be used by ERP/DRM SystemsStore•Not a SharePoint Database, but included in this list as it is critical to SP•Highly critical for performance! Do not underestimate!tempDB•Other Services Databases (Others)
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)
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
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
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
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
Site Collection Backup
• Full Fidelity Backup
• Largest of the Granular Backups
• Fastest of the Granular Backups
• Performance Load
• Read-Only Lock
Export Site / List
• Exporting List – Max Level of Granular Backup
• Option to include security permissions set
• Option to include versions
• Processor intensive
• Move Operations
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.
PowerShell Backup & Restore CMDLETS
Cmdlet SharePoint ComponentBackup-SPFarm Entire Farm
Service ApplicationsWeb ApplicationsContent Databases
Restore-SPFarm Entire FarmFarm Configuration OnlyService ApplicationsWeb ApplcationsContent Databases
Backup-SPConfigurationDatabase Farm Configuration OnlyBackup-SPSite / Restore-SPSite Site CollectionExport-SPWeb / Import-SPWeb Sites
SubsitesLibrariesLists
PowerShell - Farm Configuration Backup
• Farm Configuration Only Backupbackup-spfarm –backupMethod full –directory \\servername\SP2010Backup -configurationonly
• Complete Farm Backupbackup-spfarm –backupmethod full – directory \\servername\SP2010Backup
• Backup-SPFarm specific parameters-BackupMethod-BackupThreads
PowerShell - Configuration DB Backup
• Configuration Database Backupbackup-spconfigurationdatabase –directory \\servername\\sp2010backup –databaseserver server –databasename mss_configdb
• Backup Farm Configuration Information– Information Rights Management– Workflow– Diagnostic logging– Customizations [solutions deployed]– Outbound e-mail configuration– Antivirus settings
PowerShell – Site Collection Backup
• Backup Site Collectionbackup-spsite –Identity http://justsharepoint.com/Sites/demo -Path \\servername\sp2010backup\demosc.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
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 \\server\sp2010backups\locationlist.bak -itemurl “location” –force
• Option to include user security and versions
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
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
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
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
What are the Critical SharePoint 2010 Components?
• SharePoint Databases– Config Database– Content Database(s)– Service Application Databases
• IIS Configuration• Web.config files in \inetpub directory• Web part assemblies in %systemroot%\assembly
[GAC]• Any custom templates• SharePoint Root [ The 14 HIVE]• Virtual Directories
Third-party Backup Solutions
• Metalogix Selective Restore Manager
• Quest Recovery Manager for SharePoint
• DocAve AvePoint Backup for Microsoft Office SharePoint Products and Technologies
ResourcesSoftware Application
Developers
http://msdn.microsoft.com/
Infrastructure Professionals
http://technet.microsoft.com/
msdnindia technetindia @msdnindia @technetindia
© 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.
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.