Saturday, 19 March 2016

Backup/Restore SiteCollection Using Powershell Script

If you want to take backup/restore your site collection in SharePoint, we can do with PowerShell Commands.

Backup site collection in SharePoint using PowerShell

Backup-spsite  -Identity sitecollectionname  -path location to store the back up

Backup-spsite  -Identity http://dotnetsharepoint  -path C:\TestBackup.bak

Restore site collection in SharePoint using PowerShell

Restore-SPSite -Identity create new site collection -path location to restore the back up


Restore-SPSite -Identity http://CreatNewSiteCollection -path C:\TestBackup.bak

Thanks