Contents
Start Central Administration. In Central Administration, on the home page, in the Backup and Restore section, click Perform a site collection backup. On the Site collection backup page, select the site collection from the Site Collection list. Type the local path of the backup file in the Filename box.
- Step 1: Open SharePoint Management Shell. Go to your farm server where you have central administrator. Open SharePoint 2013 Management Shell / SharePoint 2016 Management Shell;
- Step 2: Backup. Run following command;
- Step 3: Restore. Run following command to restore the backup;
When to use backup-spsite cmdlet in PowerShell?
Powershell Performs a backup of a site collection. The Backup-SPSite cmdlet performs a backup of the site collection when the Identity parameter is used. By default, the site collection will be set to read-only for the duration of the backup to reduce the potential for user activity during the backup operation to corrupt the backup.
Where do I go to backup my SharePoint Server?
For permissions and the most current information about Windows PowerShell for SharePoint Products, see the online documentation at SharePoint Server Cmdlets. This example backs up a site collection at https://server_name/sites/site_name to the C:\\Backup\\site_name.bak file.
How to back up site collections in PowerShell?
At the PowerShell command prompt, type the following command: is the ID or URL for the site collection you want to back up. is the path to where the backup file is located. If you want to overwrite a previously used backup file, use the Force parameter.
How to back up site collections in SQL Server?
You can use PowerShell to back up a site collection manually or as part of a script that can be run at scheduled intervals. To back up a site collection by using PowerShell. Verify that you have the following memberships: securityadmin fixed server role on the SQL Server instance.