Backup and Restore web applications

To backup SharePoint web applications :

  1. using PowerShell scripts, the following command shall be used

Backup-SPSite https://server_name/sites/site_name -Path C:\Backup\site_name.bak

2. using central administration:

To Restore SharePoint web applications:

  1. Central administration –> create new web application
  2. PowerShell script –> execute the following command

Restore-SPSite https://server_name/sites/site_name -Path C:\Backup\site_name.bak

Or the detailed command can be used in order to identify the database name and the server name

Restore-SPSite https://server_name/sites/site_name -Path C:\Backup\site_name.bak -Force -DatabaseServer SQLBE1 -DatabaseName SQLDB1

References:

https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/backup-spsite?view=sharepoint-ps

https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/restore-spsite?view=sharepoint-ps