Saturday, January 2, 2016

Backup and Restore Site Collection using PowerShell in SharePoint 2013

We can do easily backup and restore of site collection using PowerShell in SharePoint 2013.

You can read: Move documents from one list to another list with metadata in SharePoint 2013 Online

Below is the PowerShell cmdlet to Backup a site collection in SharePoint 2013.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Backup-SPSite https://SiteURL/SiteName/ -Path "E:\Bijay\MySite.bak"

Below is the PowerShell cmdlet to Restore the site collection from Backup file in SharePoint 2013.

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Restore-SPSite https://SiteURL/SiteName/ -Path "E:\Bijay\MySite.bak" -Force


Twitter Delicious Facebook Digg Favorites More