Microsoft Sharepoint

Version as of 18:24, 17 May 2024

to this version.

Return to Version archive.

View current version

Microsoft Sharepoint Server Backup

When Amanda is configured and licensed for MS Sharepoint backup, Amanda uses the Microsoft Windows Volume Shadow Copy Service (VSS) to back up the Sharepoint databases and logs.

ZWC backs up and restores MS Sharepoint at database level. ZWC backs up sharepoint data that is stored in the SQL database, such as

  • Configuration and Admin databases
  • Content and configuration data for Web Applications,
  • Any third-party databases that are registered with Sharepoint 2007
  • Shared services databases in Sharepoint 2007
  • Search index databases. (office serach database and help index databases)

Just as with any other type of Windows file system, the ZWC perform performs incremental backups of databases and transaction log files based on modification time. The ZWC does not support transaction log based backup.

Other files (such as the Sharepoint installation directory, IIS metabase  information) require separate backup set configuration for backup.

ZWC currently supports only single server farm (standalone) configuration. In other words, the front-end server and the database server must reside on the same machine.

Requirements for Sharepoint Server Backup and Restore

These instructions assume you have already installed and licensed the Amanda Enterprise server, Zmanda Windows Client, and the Sharepoint Server being backed up. Because the Volume Shadow Copy Service (VSS) takes care of any necessary file locking and transaction log pruning during the backup process, the remaining requirements are simple: :

  • The Volume Shadow Copy Service must be enabled. Although the Volume Shadow Service is enabled by default, it may have been turned off after Windows installation. To ensure that it is running:
  1. Right-click the My Computer icon and choose Manage from the popup menu.
  2. Expand the Services and Applications tree and locate the Volume Shadow Copy Service.
  3. If it is not started, do so.
  4. If necessary, change the General Properties to make the Startup Type Automatic rather than Manual.

  • Windows SharePoint Services VSS Writer service must be enabled and running. To enable and run the sharepoint writer follow the steps described in  http://msdn.microsoft.com/en-us/library/bb447591.aspx.
  • Windows Sharepoint Servcies VSS Writer service must run under the admin app pool account, which is the Network Service account in a basic installation of Windows SharePoint Services.

  • Run the command vssadmin list writers at the Windows command prompt and check that the state of the Sharepoint Server Writer is stable. If not (or if there are any VSS errors), restart the Volume Shadow Copy Service and the Sharepoint Services VSS Writer service.

Configuring Microsoft Sharepoint Backups from the ZMC Backup What Page

The Zmanda Client for Windows uses snapshots for Sharepoint server backups. The procedure described below only backs up the Sharepoint database mentioned above.

Create a dedicated backup set for each Microsoft Sharepoint Server you intend to back up. On the Backup What page you are prompted to select what type of object you want to back up. Choose Microsoft Sharepoint, and the following options are displayed:

backup_what_sharepoint.png

Host Name
The hostname or IP address of the machine running the Sharepoint server you intend to back up.
Encryption and Compression
Select these options as desired. They are described in more detail here.
Advanced Options
Extended attributes are always backed up on Windows clients regardless of application. For details on the Estimate option, see the Backup Where Advanced Options help.

After you have set the options, click Add. Depending on the Mode of Operation (Planned or Live) the changes are added to the list and/or actually made live on the server; you can then configure the backup set just as you would any other by setting the options on Backup Where, Backup How, and Backup When, etc.

Configuring Microsoft Sharepoint Server Restores from the ZMC Restore What Page

Make sure that MS Sharepoint is installed in the same location as when the backup was run. The databases and logs file locations should also match the original configuration. When you have selected the disk list entry that includes the Sharepoint databases for restore, the Restore What page displays a dialog that lets you specify what to restore.

Select all the host databases and log files on the Restore->What page. 

Server loss can be caused by software or hardware failure, or by the physical loss of the site where the server was housed. Disaster recovery operations are performed only when a fatal disaster occurs,which usually involves replacement of hardware and sometimes re-installation and setup of software.

One would also need to recover Sharepoint databases in case of issues such as database corruption, loss of transaction logs, accidental deletion of web applications, etc.

Sharepoint databases can be restored to the same server or to an alternate server depending on the Recovery plan decided by the Administrator.

When you have selected the disk list entry that includes the Sharepoint databases for restore, the Restore What page displays a dialog that lets you specify what to restore.

Select the host database/s and log file/s on the Restore->What page which needs to be restored.

On restore->where page select the target server. If restore is to be done at original location, leave the destination directory blank.

Requirements for restoring sharepoint database/s to original location on same or alternate server

  1. The target Sharepoint server must have the same Windows OS version and Service Packs as the source server.
  2. The target server must have the same sharepoint server (WSS 3.0 or MOSS 2007) and SQL server (embedded SQL server or SQL server 2005 or SQL server 2000)
  3. Make sure that MS Sharepoint is installed in the same location as when the backup was run. The databases and logs file locations should also match the original configuration.
  4. Make sure that the following services are in Started state

    Windows SharePoint Services VSS Writer
    Volume Shadow Copy
    Windows SharePoint Services Tracing
  5. ZWC performs the restore to original location in following steps

    a) Stops the following sharepoint services before starting actul restore

    - Windows SharePoint Services Administration 
    - Windows SharePoint Services Search
    - Windows SharePoint Services Timer
    - Office SharePoint Server Search
    - IIS Admin Service (if entire farm is being restored)
    - If only selected Web applications or other components are being restored, the
    Web applications is stopped and the components may not be in use during the
    restoration.

    b) Restore the selected sharepoint database/s and log file/s to their original location

    c) Call Sharepoint VSS writer's post-restore operation for synchronising the respective databases. To ensure that all databases are synchronized with the farm after a restore operation is complete, each of the databases are automatically detached and reattached to the farm post recovery. Administrators do not need to run additional procedures to resynchronize the restored databases.

    d) The services (which are stopped before restore) are started.

    For restoring to alternate location, services are not stopped and started before and after restore. Also Sharepoint Writer's port-restore operation is not called. Only selected database/s and log file/s will be restored to the given location.

Note: If the configuration database and Central Administration content database are backuped using the built in sharepoint backup and restore feature, restoring backups of the configuration database and Central Administration
content database taken from a running farm is not supported (http://technet.microsoft.com/en-us/library/cc261903.aspx#section5).

In contrast as ZWC uses VSS for backup and restore for sharepoint, such limitation do not apply. One can easily take a backup of entire sharepoint farm including admin and config databases while sharepoint services are running and then safely restore them without any problems.