Section 1 - Help Centre

This section provides useful help and tips over and above the formal support manual sections 2 through 18.


1.12 How to perform a Farm backup for SharePoint Server 2010 and 2013?

Description:

How to perform a Farm backup for SharePoint Server 2010 and 2013?

Steps:
To backup SharePoint Server, the following steps are required:

  1. Commands are issued to the SharePoint application to output the backup data.
  2. The OBM will backup the output data from the client server offsite to the OBS.

Assumption: The following assumption are made:

Important Note:
A farm backup starts a Microsoft SQL Server backup of content and service application databases, writes configuration content to files, and also backs up the Search index files and synchronizes them with the Search database backups.

Web servers setting in the SharePoint Server environment are not included in a farm backup, they include:

Please document the above settings for future reference and restoration purposes. To compliment the backup and effectively backup the SharePoint server, also use the MS Windows System module of OBM to backup your server.

Instruction:
Refer to the following steps to perform a Farm backup for your SharePoint server:

Prepare the pre-backup command:

  1. Install OBM on the Sharepoint Server.
  2. Download the spsFarmBackup.bat and BackupSharePointFarm.ps1 file by Clicking Here.
  3. Extract and place both files within the C:\ root directory.
  4. Open the BackupSharePointFarm.ps1 file with a text editor:

    BackupSharePointFarm.ps1
    ...
     $DIRECTORY = "\\servername\path"
     
     
     Add-PsSnapin Microsoft.SharePoint.Powershell
     Backup-SPFarm -Directory $DIRECTORY -Force -BackupMethod full
     exit
    ...

  5. Edit the '$DIRECTORY' variable with the backup destination path.

    Note:
    Consider the following when setting up the backup destination path:

    In this example, the MS SQL Server and SharePoint Server both reside on the same server, therefore, a local backup destination is specified.

    BackupSharePointFarm.ps1 (Updated)
    ...
     $DIRECTORY = "E:\FarmBackupDir"
     
     
     Add-PsSnapin Microsoft.SharePoint.Powershell
     Backup-SPFarm -Directory $DIRECTORY -Force -BackupMethod full
     exit
    ...

  6. Save and exit from the text editor.
  7. Manually create the backup destination folder (e.g. E:\FarmBackupDir) specified in the BackupSharePointFarm.ps1 file

Configure the pre-backup command on the OBM:

  1. Login to the OBM console, create a file type backup set for the Sharepoint Farm backup.
  2. Select the backup destination directory specified in the BackupSharePointFarm.ps1 file as Backup Source of the backup set:

  3. Accept the default encryption settings by pressing the [OK] button if no change is necessary.
  4. Select the Sharepoint Farm backup set in the [Backup Setting] menu, select the [Command Line Tool].
  5. Press the [Add] button under the Pre-Backup section on the right panel, enter the following entries in the corresponding text fields:

    Working Directory: C:\
    Command: spsFarmBackup.bat

  6. Press the [OK] button to save this setting.

The Sharepoint Server can now be backed up by pressing the [Backup] button on the OBM console.