In order to back up the Web Sites Controller, you can use the Backup.ps1 PowerShell script presented in this section. This script invokes the Windows Volume Shadow Service (VSS) writer to perform the backup.

Copy the Backup.ps1 script onto the Web Sites Controller, and then run the following command with Administrator privileges:

In backing up SQL Server, you must back up the Hosting database, the Resource Metering database, and the master database. Because each user's SQL environment is different, no one script can fit every user's requirements. The following example script is provided for illustrative purposes only and is unsupported. The script that you create must be run with administrative privileges.

When backing up the File Server, you must back up the Certificate share, the WebSites share, the ACLs for the previously stated folders, and the File Server Resource Manager (FSRM) quotas for the WebSites share.

Because each user's File Server environment is different, no one script can fit every user's requirements. The following example scripts are provided for illustrative purposes only and are unsupported. The scripts that you create must be run with administrative privileges.