In this post we will discuss how to take back and restore in SharePoint 2013 site collection using PowerShell.
Also you can check out some posts on:
- Apps packaging in SharePoint 2013
- What happen when you press F5 in Visual Studio in SharePoint 2013?
- Advantages of SharePoint 2013 Apps
Below are the PowerShell command:
Backup:
Syntax:
Backup-spsite -Identity <sitecollectionname> -path <location to store the backup>
Example:
Backup-spsite -Identity http://MySiteColURL -path C:\MySiteBackup.bak
Restore:
Syntax:
Restore-SPSite -Identity <create new site collection> -path <location to restore the backup>
Example:
Restore-SPSite -Identity http://MyNewSiteColURL -path C:\MySiteBackup.bak
Also you can check out some posts on:
- Apps packaging in SharePoint 2013
- What happen when you press F5 in Visual Studio in SharePoint 2013?
- Advantages of SharePoint 2013 Apps
Below are the PowerShell command:
Backup:
Syntax:
Backup-spsite -Identity <sitecollectionname> -path <location to store the backup>
Example:
Backup-spsite -Identity http://MySiteColURL -path C:\MySiteBackup.bak
Restore:
Syntax:
Restore-SPSite -Identity <create new site collection> -path <location to restore the backup>
Example:
Restore-SPSite -Identity http://MyNewSiteColURL -path C:\MySiteBackup.bak