Backup restore site collection sharepoint is the mostly requested task for administrator. As an admin, you should know how to backup sharepoint site collection. When you need to migrate site collection from one environemnt to another environent Example Production to QA mostly, we follow the sharepoint back up restore method. It can be sharepoint content database backup restore method or only backup and restore site using powershell method.
sharepoint backup and restore site collection methods
There are different ways to back up site in sharepoint and restore to different infracture. We can follow content database back up and restore method. Follow the post below on the same.
Dismount Mount content database in sharepoint 2019 using powershell
we can follow any one of the backup and restore methods in sharepoint, find below:
- Backup site collection using central admin.
- Backup site collection using powershell
- Restore site collection using powershell
Backup site using central admin
Follow the step by step procedure to back sharepoint site using central admin method below:
- Open “SharePoint Central Administration”
- Click on “Backup and Restore” from left navigation.
- Click on “Perform a site collection backup” present under “Granular Backup”.
- Select “Site Collection” and enter backup file save path.
- Select the check box “Overwrite existing file” so as to save and replace the existing file with same name.
- proceed for click “Start Backup”.

- Backup process will start with message “A site collection backup is currently in progress” under “Granular Backup Job Status” page. You will see page as shown below.

- Click on “Refresh” to check the status in certain interval of time. You will see the completion status once done.

Backup site using powershell
You can follow powershell command which comes under sharepoint backup and restore best practices. Follow the step by step procedure below:
- Run “SharePoint 2019 Management Shell” as an Administrator.
- Run the command “Backup-SPSite” as shown in code below.
Backup-SPSite http://win-q2repghf9du/sites/DevSite -Path "C:\backup\SharePoint\DevSite.bak" -Verbose

Restore site collection using powershell
Follow step by step procedure to restore site using powershell.
Identify the content database and respective DB server in which you are planning to restore by navigating “Manage Content Database -> Select web application -> Click on respective content database”.


- Run “SharePoint 2019 Management Shell” as an Administrator.
- Run the command “Restore-SPSite” as shown in code below.
Restore-SPSite -Identity http://win-q2repghf9du:44179/ -Path C:\backup\SharePoint\DevSite.bak -DatabaseServer WIN-Q2REPGHF9DU -DatabaseName WSS_Content_WebApp -Force -Verbose

if you are passing url http://win-q2repghf9du:44179/, restored site collection will be a root site collection, as below.

if you are passing url http://win-q2repghf9du:27315/sites/DevSite, restored site collection will be created with same url, as below. This URL is the new site collection url as restored path.
Restore-SPSite -Identity http://win-q2repghf9du:27315/sites/DevSite -Path C:\backup\SharePoint\DevSite.bak -DatabaseServer WIN-Q2REPGHF9DU -DatabaseName WSS_Content_41dfb81a085a49b781b289e61fc4b037 -Force -Verbose


Backup sharepoint online site collection
So as to take backup sharepoint online site collection, you need to contact microsoft support by creating a ticket.
Categories: administration, backup restore in sharepoint, content DB, powershell, powershell command, SharePoint 2019, SharePoint Online, sharepoint server, site collection
You must be logged in to post a comment.