Every customer has a unique development workflow and deployment process; however, the following best practice guidelines will apply to most Site Factory deployments.
Before any changes are made to the production environment, site data should be copied to the staging environment where the deployments can be end-to-end tested against a representative sample of sites. This is the time to review and test deployment related Factory Hooks including the db-update hook.
Then, for production deployments, incorporate the following best practices into your releases:
There are multiple methods to accomplish this task and no "one size fits all" method. The simplest approach is to visit https://cloud.acquia.com/a/applications/all, navigate to the "01live" production environment, select "Databases" from the sidebar menu, and back up each database manually. Alternatively, you may utilize Site Actions within your Site Factory Management Console; first select "All My Sites", choose the "Back Up Site" option, and repeat this action for each site. (These backups will be queued and will appear under "All My Site Backups" when they are completed.)
If you wish to automate the process, consider using this script or write your own script that implements implements the Site Factory API. The ACSF Tools library, on Github, provides another option.
Reverting deployment is a last resort, but it is important to have a written process in place before you need it. List roles and responsibilities appropriate to your organization, and note the steps to be owned by each individual. We recommend you file an Acquia Support ticket immediately if your deployment was not successful (and before taking action to revert database or roll back a deployment).
There are many technical and non-technical stakeholders associated with Site Factory applications. Maintenance windows should be communicated to stakeholders when appropriate. For example,
The Site Factory Management Console includes an "Export CSV" button that can be used to generate a simple listing of all sites. Additional organization-specific details (such as internal and external site URLs) may need to be added. Customers add new sites all the time, so it may be necessary to update your inventory ahead of every Site Factory deployment.
In the event that a small number of sites fail to update successfully, you should "fail forward" by correcting the affected sites, as this is often preferable to rolling back a production deployment. Reviewing any errors in the WiP logs and apply appropriate drush commands targeting the affected sites. Similarly, database backups can be restored to selected sites individually, and configuration imports or database updates can be re-applied. Your inventory of production sites should be used to prioritize remediation and keep track of any post-deployment issues. Prevent these sites from blocking the next deployment by correcting the underlying issue with your application.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 22 2025 08:59:29 GMT+0000 (Coordinated Universal Time)