Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Sharepoint 2013 : Backup and Restore (part 1) - Site Collection Backups

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
1/24/2014 8:45:52 PM

Backup and restoration of user data and system configuration is an intricate part of disaster recovery planning. After all, the user data is most precious and typically tantamount to the running of the organization’s business. SharePoint 2013 includes a number of backup and restoration methods, from complete farm backup/restore to granular backup/restore, such as site import and export and site collection backup. In this section, I will visit each method and discuss the specific benefits and shortcomings of each, enabling you as the SharePoint administrator to make effective decisions in your disaster recovery plan.

As a general rule of thumb, I recommend that you employ various backup methods to ensure that you are able to recover your SharePoint farm in the event of a disaster. The following list summarizes, from a high level, what you should back up:

  • All content databases
  • All configuration and service application databases
  • The SharePoint 2013 hive on each web server (c:\program files\common files\Microsoft shared\web server extensions\14\)
  • All virtual application directories on each web server (c:\Inetpub\wwwroot\wss\VirtualDirectories)
  • Any custom databases or additional files that do not live in the hive or virtual application directories on each web server
  • Site collection backups for faster restore, in the event of isolated data corruption or data loss in a particular site collection

When it comes to backup, more is better. If space for backup is not as plentiful, then backup of all databases and custom “changes” to the hive and virtual application directories should allow you to recover your farm after a new installation.

With the high-level stuff out of the way, I shall now detail the various backup methods available in SharePoint 2013.

1. Site Collection Backups

Site collection backups are compelling in that they enable administrators to save a complete site collection to a file on disk. Administrators may back up a site collection using the STSADM command, PowerShell, or Central Administration.

Note  Site collection backup puts stress on SharePoint and consumes resources to complete the process. Microsoft does not recommend backing up site collections of more than 15GB, because of the drain on the live site collection, hosting web application, and the time to complete the backup. Site collection backup works well when moving data from one farm to another, or in conjunction with another backup scheme to ensure data integrity.

Site Collection Backup and Restore Using PowerShell

The following steps demonstrate backing up a site collection to a disk file, using PowerShell:

  1. From the Start menu, choose All Programs.
  2. Click Microsoft SharePoint 2013 Products.
  3. Click SharePoint 2013 Management Shell to launch the console.
  4. Type the following text into the console, replacing the appropriate placeholders:
    Backup-SPSite <site collection URL> -Path <backup file> [-Force] [-NoSiteLock] [-UseSQLSnapshot] [-Verbose]

Include the [Force] parameter to overwrite an existing backup file. I recommend not using the [NoSiteLock] option, as this prevents SharePoint from putting the site collection in read-only state, meaning that users can write to the site collection during backup and potentially corrupt the database. Use the [UseSQLSnapshot] option if you have SQL Server Enterprise edition, for more consistent backup. The [Verbose] option provides additional output.

Now that I have shown you how to back up your site collection, restoring it is just as easy. The following command demonstrates restoring a site collection from a backup file, using PowerShell:

  • 5.   Type the following text into the console, replacing the appropriate placeholders:
    Restore-SPSite <site collection URL> -Path <backup file> [-DatabaseServer <database server name> ] [-DatabaseName <database name>] [-HostHeader <host header> ] [-Force] [-GradualDelete] [-Verbose]

Include the [Force] parameter to overwrite an existing backup file. Use the [-DatabaseServer] option if the server is not part of your farm. Include the [-GradualDelete] option to minimize locks on the database and provide for better restore performance for backups over 1GB when replacing an existing site collection, which SharePoint marks as deleted; the timer service deletes the legacy site collection later. Use the [-HostHeader] option if restoring a site collection to a web application that requires a unique host header.

Site Collection Backup and Restore Using STSADM

Use the following STSADM command, inside a command shell, to back up a site collection to a disk file, replacing the appropriate placeholders:

STSADM –o backup –url <site collection url> -filename <filename>

Similar to the PowerShell command for backing up a site collection, you may provide the -overwrite option to overwrite an existing backup file, -nositelock to prevent site collection lock, and -usesqlsnapshot to use SQL Server Enterprise snapshot. Use the following STSADM command to restore a site collection from a backup file, replacing the appropriate placeholders:

STSADM –o restore –url <site collection url> -filename <filename>

Similar to the PowerShell command for restoring a site collection, you may provide the –overwrite option to overwrite an existing site collection, -hostheaderwebapplicationurl to provide a host header URL, and -gradualdelete to provide better performance in overwriting an existing site collection (marks the overwritten site collection as deleted and the timer service deletes it later).

Site Collection Backup and Restore Using Central Administration

The following steps demonstrate backing up a site collection to a disk file, using Central Administration:

  1. Open Central Administration.
  2. Click the Backup and Restore heading.
  3. Click the Perform a Site Collection Backup link. You will see a page like that in Figure 1.

    9781430249412_Fig05-10.jpg

    Figure 1. Perform a site collection backup in Central Administration

  4. Click the drop-down control to change the site collection.
  5. In the resulting dialog box, select the web application containing the site collection.
  6. Provide the UNC path of the file name to save the backup.
  7. Click the Start Backup button.
Other -----------------
- Sharepoint 2013 : Health Monitoring and Disaster Recovery - Maintaining Content Integrity (part 2) - Versioning
- Sharepoint 2013 : Health Monitoring and Disaster Recovery - Maintaining Content Integrity (part 1) - The Recycle Bin
- Sharepoint 2013 : Health Monitoring and Disaster Recovery - SharePoint Farm Design
- Sharepoint 2013 : Planning for Disaster Recovery
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 5) - Exclusion Collections
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 4) - Dependent Subcollections
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 3) - Creating a Dynamic Collection Limited to a Collection
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 2) - Creating a Dynamic Collection
- System Center Configuration Manager 2007 : Distributing Packages - Creating Collections (part 1) - Static Collections
- Sharepoint 2013 : New Installation and Configuration - Configuring Your SharePoint Farm
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server