Friday, October 19, 2012

Backup and Restore Site Collections in SharePoint 2010 using PowerShell

In this post we will discuss how to take Backup and Restore site collections using PowerShell in SharePoint 2010.

In my previous articles I have explained about on Get System Accounts using PowerShell, Some PowerShell commands for SharePoint 2010.

Also check how to Switch from Classic to Claims Authentication in SharePoint 2010 and check how to
Deploy infopath form using PowerShell or STSADM command.

In SharePoint 2010 you can take a backup of a site collection, and also you can restore a site collection using PowerShell in SharePoint 2010.

Below is the PowerShell command to take backup using the Backup-SPSite cmdlet:

SPSite http://[Site Collection URL] –Path C:\Backup\mySiteCollection.bak

Below is the PowerShell command to Restore a site collection in SharePoint 2010:

Restore-SPSite http://[Site Collection URL] –Path C:\Backup\mySiteCollection.bak

Hope the above PowerShell command will work.

No comments:

Post a Comment