Using the Site Factory Management Console, you can create backups of your
Site Factory-hosted websites. Each backup may include the
website’s complete docroot directory, database, public files, and private
files, all in a .tar.gz
format suitable for exports.
You can create and download website backups using the Site Factory Management Console, and restore a website from a backup. You can also use the Site Factory REST API to create, list, and delete backups and to restore a website from a backup.
For procedures you can use to exclude sensitive credentials, keys, or other private information from stored backups, see Storing sensitive information outside of your codebase.
Note
The acsf-tools repository (also included with BLT) provides more backup scripts for Site Factory websites using Drupal 8. For more information, see Managing sites on a cluster with Drush.
To create and download backups, you must have a role with the necessary permissions.
To create a backup of a website, complete the following steps:
Sign in to the Site Factory interface.
Find the website you want to back up, and then open its actions menu.
Click Back up site.
In the Create site backup page, select the components you want to back up:
Click Back up.
After your backup completes, you will receive an email letting you know the backup is now available on the Site Backups page. Backups can take several minutes to complete for small websites, but larger websites can take much longer to complete.
You can view and download your website backups on the Site Backups page:
The backups are created with the site name, plus a timestamp from when the backup was created. To sort the table by name, by date, or by stack (if you have more than one stack) click the column heading you want to sort by.
To restore a backup, identify the desired backup and in the Actions column, click Restore in the backup’s row:
Note
When you create backups using the Site Factory REST API, you can
use the label
request parameter to modify the backup name.
If you want to download a website backup file to your local computer, on the Site Backups page find the backup you want to download, and then click its Download link.
Important
Site Factory non-production environments don’t make automated daily backups. Site Factory subscribers must create on-demand backups if necessary for their development process.
For information about using a backup file to restore a website, see Restoring a site from a backup.