Backup/restore SharePoint site collection using PowerShell

You can quickly perform site collection backup and restore using PowerShell commands. It is powerful and quick.

Back up a site collection using PowerShell

1.      Make sure that the user has rights to perform backup.

2.      On the “Start” click “All Programs.”

3.      Now click on “Microsoft SharePoint 2010 products”.

4.      Click on “SharePoint 2010 Management Shell”

5.      The PowerShell command prompt will be appear , now type the following

Backup-SPSite -Identity <Name on site collection> -Path <backup file path> [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]

If you want to overwrite the previous backup, please use force.

 

Restore a site collection using PowerShell

1.      Make sure that the user has rights to perform backup.

2.      On the “Start” click “All Programs.”

3.      Now click on “Microsoft SharePoint 2010 products”.

4.      Click on “SharePoint 2010 Management Shell”

5.      The PowerShell command prompt will be appear , now type the following

Restore-SPSite -Identity <The site collection URL> -Path <Backup file> [-DatabaseServer <Name of Database server>] [-DatabaseName <The content database name>] [-HostHeader <The Host header>] [-Force] [-GradualDelete] [-Verbose]

If you want to overwrite the existing site collection, please use force.

Blogs

See More Articles

Contact us

To begin your digital transformation, get in touch.

We’re pleased to address any inquiries you might have and assist you in selecting the service that best suits your requirements.

Your benefits:
Speak To Us