Top Banner
SharePoint 2010 – Backup and Restore Alpesh Nakar
38

SharePoint 2010 – Backup and Restore Alpesh Nakar.

Dec 26, 2015

Download

Documents

Adam George
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SharePoint 2010 – Backup and Restore Alpesh Nakar.

SharePoint 2010 – Backup and Restore

Alpesh Nakar

Page 2: 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

Page 3: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 4: SharePoint 2010 – Backup and Restore Alpesh Nakar.

Business Continuity Plan

• Business Requirements– RPO, RTO

• Recovery Needs–What’s not enough and what do you

need to recover

• Tools Required

Page 5: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 6: SharePoint 2010 – Backup and Restore Alpesh Nakar.

BACKUP CRITICAL SHAREPOINT COMPONENTS

Page 7: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 8: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 9: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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)

Page 10: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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)

Page 11: SharePoint 2010 – Backup and Restore Alpesh Nakar.

BACKUP WITH THE SHAREPOINT 2010 CENTRAL

ADMINISTRATION SITE

Page 12: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 13: SharePoint 2010 – Backup and Restore Alpesh Nakar.

SHAREPOINT 2010: CENTRAL ADMINISTRATION

Page 14: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 15: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 16: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 17: SharePoint 2010 – Backup and Restore Alpesh Nakar.

Site Collection Backup

• Full Fidelity Backup

• Largest of the Granular Backups

• Fastest of the Granular Backups

• Performance Load

• Read-Only Lock

Page 18: SharePoint 2010 – Backup and Restore Alpesh Nakar.

Export Site / List

• Exporting List – Max Level of Granular Backup

• Option to include security permissions set

• Option to include versions

• Processor intensive

• Move Operations

Page 19: SharePoint 2010 – Backup and Restore Alpesh Nakar.

USING SHAREPOINT 2010 MANAGEMENT

SHELL FOR BACKUP & RESTORE

Page 20: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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.

Page 21: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 22: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 23: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 24: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 25: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 26: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 27: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 28: SharePoint 2010 – Backup and Restore Alpesh Nakar.

DEMO

Recover from Unattached Content Database

Page 29: SharePoint 2010 – Backup and Restore Alpesh Nakar.

DEMO

Export a ListMerge a List

Page 30: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 31: SharePoint 2010 – Backup and Restore Alpesh Nakar.

SHAREPOINT SITE COLLECTION BACKUP USING SQL SNAPSHOT

Page 32: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 33: SharePoint 2010 – Backup and Restore Alpesh Nakar.

READ ONLY DATABASE

Page 34: SharePoint 2010 – Backup and Restore Alpesh Nakar.

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

Page 35: SharePoint 2010 – Backup and Restore Alpesh Nakar.

Third-party Backup Solutions

• Metalogix Selective Restore Manager

• Quest Recovery Manager for SharePoint

• DocAve AvePoint Backup for Microsoft Office SharePoint Products and Technologies

Page 36: SharePoint 2010 – Backup and Restore Alpesh Nakar.

Questions?

Page 37: SharePoint 2010 – Backup and Restore Alpesh Nakar.

ResourcesSoftware Application

Developers

http://msdn.microsoft.com/

Infrastructure Professionals

http://technet.microsoft.com/

msdnindia technetindia @msdnindia @technetindia

Page 38: SharePoint 2010 – Backup and Restore Alpesh Nakar.

© 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.