{"id":2621,"date":"2010-11-21T08:36:39","date_gmt":"2010-11-21T16:36:39","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=2621"},"modified":"2017-07-22T13:05:47","modified_gmt":"2017-07-22T20:05:47","slug":"granular-backups-and-restores-in-sharepoiont-2010","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/granular-backups-and-restores-in-sharepoiont-2010\/","title":{"rendered":"Granular Backups and Restores in SharePoint 2010"},"content":{"rendered":"<p>You can backup and restore either a complete Site Collection or individual Sites, either using the Central Administration&#8217;s granular backup\/restore feature or with the PowerShell cmdlets. In this article I will offer the details for both methods. Let&#8217;s get right to it.<\/p>\n<p><strong>Backup Up Site Collection Using Central Administration<\/strong><\/p>\n<p>Go to Central Administration -&gt; Backup and Restore -&gt; Granular Backup -&gt; Perform a site collection backup.<\/p>\n<p><strong>Backup Site Collection Using PowerShell<\/strong><\/p>\n<p>Use the following PowerShell syntax to backup a Site Collection.<\/p>\n<p><em>backup-spsite -identity <span style=\"color: #008000;\"><strong>Site_URL<\/strong><\/span> -path <strong><span style=\"color: #008000;\">\\\\server\\share\\filename.bak<\/span><\/strong><\/em><\/p>\n<p>For example:<\/p>\n<p><em>backup-spsite -identity <span style=\"color: #008000;\"><strong>http:\/\/seattlepro.com<\/strong><\/span> -path <strong><span style=\"color: #008000;\">\\\\SharePoint\\Backups\\SeattlePro.bak<\/span><\/strong><\/em><\/p>\n<p><strong>Restore a Site Collection Using Central Administration<\/strong><\/p>\n<p>There is no option in Central Administration to perform a granular restore of a Site Collection. You must use PowerShell to restore a Site Collection.<\/p>\n<p><strong>Restore a Site Collection Using PowerShell<br \/>\n<\/strong><\/p>\n<p>To restore a Site Collection use the <strong>restore-spsite<\/strong> cmdlet. This will allow you to restore Site Collections that were backed up either using Central Administration&#8217;s <em>Perform a site collection backup<\/em> link, or were backed up using <strong>backup-spsite<\/strong> cmdlet. Here&#8217;s the syntax.<\/p>\n<p><em>restore-spsite -identity <span style=\"color: #008000;\"><strong>Site_URL<\/strong><\/span> -path <span style=\"color: #008000;\"><strong>\\\\server\\share\\filename.bak<\/strong><\/span><\/em><\/p>\n<p>For example:<\/p>\n<p><em>restore-spsite -identity <span style=\"color: #008000;\"><strong>http:\/\/intranet.seattlepro.com<\/strong><\/span> -path <span style=\"color: #008000;\"><strong>\\\\SharePoint\\Backups\\Intranet.bak<\/strong><\/span><\/em><\/p>\n<p><span style=\"text-decoration: underline;\">NOTE<\/span>: If the Site Collection already exists, you can use the <strong>-force<\/strong> switch at end of the above URL to overwrite the existing site. For example:<\/p>\n<p><em><span style=\"color: #008000;\"><span style=\"color: #000000;\">restore-spsite -identity <\/span><\/span><strong><span style=\"color: #008000;\">http:\/\/intranet.seattlepro.com <\/span><\/strong><span style=\"color: #008000;\"><span style=\"color: #000000;\">-path <\/span><\/span> <strong><span style=\"color: #008000;\">\\\\SharePoint\\Backups\\Intranet.bak <span style=\"color: #000000;\">-force<\/span><\/span><br \/>\n<\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2010\/11\/GranularBackupRestore.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-2626\" title=\"GranularBackupRestore\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2010\/11\/GranularBackupRestore-300x163.png\" alt=\"\" width=\"300\" height=\"163\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2010\/11\/GranularBackupRestore-300x163.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2010\/11\/GranularBackupRestore.png 736w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Export a Site Using Central Administration<\/strong><\/p>\n<p>Go to Central Administration -&gt; Backup and Restore -&gt; Granular Backup -&gt; Export a site or list.<\/p>\n<p><strong>Export a Site Using PowerShell<\/strong><\/p>\n<p>To export a SharePoint 2010 Site, Library or a List, use the <strong>export-spweb<\/strong> cmdlet. Here&#8217;s the syntax.<\/p>\n<p><em>export-spweb -identity Site_URL -path \\\\server\\share\\filename.cmp<\/em><\/p>\n<p>For example:<\/p>\n<p><em>export-spweb -identity <strong><span style=\"color: #008000;\">http:\/\/extranet.seattlepro.com\/microsoft<\/span><\/strong> -path <strong><span style=\"color: #008000;\">\\\\SharePoint\\Backups\\Extranet.cmp<\/span><\/strong><\/em><\/p>\n<p><strong>Import a Site Using PowerShell<br \/>\n<\/strong><\/p>\n<p>Use <strong>import-spweb<\/strong> cmdlet to restore a SharePoint 2010 site, library or a list that was exported either in Central Administration with export site or list option, or with <strong>export-spweb<\/strong> cmdlet.<\/p>\n<p>To import a site called SeattlePro located at http:\/\/extranet.microsoft.com\/seattlepro first make sure that the site exists with the same template that was exported (e.g. a Team Site template). You can&#8217;t use a blank template to import a site that used a Team Site template. If import fails, look in the import log file. It will tell you which template the exported site used.<\/p>\n<p><em>Cannot import site. The exported site is based on the template CMSPUBLISHING#0 but the destination site is based on the template STS#0. You can import sites only into sites that are based on same template as the exported site.<\/em><\/p>\n<p>CMSPUBLISHING#0 is a Publishing Site template, while STS#0 is a Team Site template. Recreate the site with the same template and then import an exported site using this PowerShell cmdlet.<\/p>\n<p><em>import-spweb -identity <span style=\"color: #008000;\"><strong>URL_for_Imported_Site<\/strong><\/span> -path <strong><span style=\"color: #008000;\">\\\\servername\\sharename\\filename.cmp<\/span><\/strong><\/em><\/p>\n<p>For example:<\/p>\n<p>import-spweb -identity <span style=\"color: #008000;\"><strong>http:\/\/extranet.seattlepro.com\/microsoft<\/strong><\/span> -path <span style=\"color: #008000;\"><strong>\\\\SharePoint\\Backups\\Microsoft.cmp<\/strong><\/span><\/p>\n<p><strong>Granular Backup Job Status<\/strong><\/p>\n<p>To check the status of your backup job, go to Central Administration -&gt; Backup and Restore -&gt; Granular Backup -&gt;Check granular backup job status, or use the following URL.<\/p>\n<p><em>http:\/\/<span style=\"color: #008000;\"><strong>Server:Port#<\/strong><\/span>\/_admin\/SiteBackupOrExportStatus.aspx<\/em><\/p>\n<p>For example:<\/p>\n<p><em>http:\/\/<span style=\"color: #008000;\"><strong>SharePoint:5678<\/strong><\/span>\/_admin\/SiteBackupOrExportStatus.aspx<\/em><\/p>\n<p><strong>Summary<\/strong><\/p>\n<p>To restore a site collection that was backed up with either Central Administration&#8217;s &#8220;Perform a site collection backup&#8221; option, or using <strong>backup-spsite<\/strong> cmdlet, use <strong>restore-spsite<\/strong> cmdlet.<\/p>\n<p>To restore a Site, Library or a List that was exported either in Central Administration with &#8220;Export a site or list&#8221; option, or with <strong>export-spweb<\/strong> cmdlet, use <strong>import-spweb<\/strong> cmdlet.<\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92010 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can backup and restore either a complete Site Collection or individual Sites, either using the Central Administration&#8217;s granular backup\/restore feature or with the PowerShell cmdlets. In this article I will offer the details for both methods. Let&#8217;s get right to it. Backup Up Site Collection Using Central Administration Go to Central Administration -&gt; Backup [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[54,11],"tags":[],"class_list":["post-2621","post","type-post","status-publish","format-standard","hentry","category-sharepoint","category-tips-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/2621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=2621"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/2621\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=2621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=2621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=2621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}