Back Up the SharePoint Farm

Scenario/Problem: You want to back up the entire farm.

Solution: Use the Backup-SPFarm cmdlet with the Directory parameter.

The Backup-SPFarm cmdlet enables you to perform a backup of the entire farm (or item in the farm), placing the backup files in the directory specified. Listing 7.13 shows an example.

Listing 7.13. Sample Script for Backing Up the SharePoint Farm

Backup-SPFarm -BackupMethod Full -Directory F:\Backups

The BackupMethod parameter can be either Full or Differential. Full backs up the entire configuration, whereas Differential backs up only changes that have occurred since the last full backup was performed.

Tip

Run Backup-SPFarm with the -ShowTree parameter to display all items in the farm that ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.