February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You want to restore a site collection from a backup.
Solution: Use the Restore-SPSite cmdlet.
The Restore-SPSite cmdlet enables you to restore a site collection based on the backup file in the path specified, as shown in Listing 7.16.
Listing 7.16. Sample Script for Restoring a Site Collection
Restore-SPSite -Identity "http://sp2013/sites/BICenter"-Path F:\Backups\BICenter.bak -Force
The Force switch parameter is needed to overwrite an existing site collection. You also specify can the DatabaseName and DatabaseServer parameters to tell where the content of the site collection should be stored.
Read now
Unlock full access