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

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 video Game
-   Call Of Duty: Black Ops III [PS4/XOne/PC] Zombies - Shadows of Evil Trailer
-   No Time To Explain [XOne/PC] Multiplayer Trailer
-   Bierzerkers [PC] Early Access Trailer
-   Downward [PC] Kickstarter Trailer
-   Grip [PS4/PC] Trailer
-   Hitman [PS4/XOne/PC] Debut Trailer
-   Gears of War: Ultimate Edition [XOne] Recreating the Cinematics Trailer
-   Gravity Falls: Legend of the Gnome Gemulets [3DS] Debut Trailer
-   Street Fighter V [PS4/PC] Ken Trailer
-   Doctor Who | Series 9 Teaser Trailer
-   Transformers: Devastation | Gameplay Trailer (SDCC 2015)
-   Tom Clancy's Rainbow Six Siege | Inside Rainbow #3 – The GIGN Unit
-   Final Fantasy XIV: A Realm Reborn 'Alexander' Video
-   SirVival Trailer
-   Blood Bowl II [PS4/XOne/PC] Overview Trailer
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
programming4us programming4us
PS4 game trailer XBox One game trailer
WiiU game trailer 3ds game trailer
Trailer game
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer