TL;DR
|
Two hours. That's how long it took a developer at the University of Missouri (Mizzou) to patch one Drupal site by hand.
The next site took another two hours, and so did the one after that. With about 300 Drupal sites to look after, one round of updates came to roughly 600 hours of developer time, according to John Boyer, then a principal programmer and analyst on the university's Digital Service team.
By 2020, when the university first shared its story, the same update took two to three minutes per site, and nobody had to watch it run. Getting there started with a problem that had nothing to do with patching.
Before anything could be automated, the university had to stop building every site differently.
For years, any school, division or department at Mizzou with funding could hire its own developer, set up its own server or buy its own hosting. By the time the web team stepped in, the university had about 1,600 sites across 13 content management systems with no shared standards.
Just working out how one site was built could take days or weeks. You can't script an update when every site needs a different one, so someone opened each site and did the work by hand.
Once every site shared the same shape, the team could write the update once and run it everywhere.
The university chose two systems, Drupal and WordPress, and set them up to share about 90% of the same processes. After a formal RFP, it moved roughly 400 sites to Upsun Cloud, each with the same workflow, build process and setup. Then the team used the Upsun Cloud CLI and API to script routine work across the whole fleet, updates included.
Patching took two to three minutes per site instead of two hours. Boyer estimated the team saved about 1.5 hours per site every month, and the team reported spending 75% less time on maintenance and updates overall. A new site could be set up and synced in about two minutes.
It wasn't hands-free. "There's some QA," Boyer said. The script took over the repetitive steps, and a person still checked the results. The university still uses Upsun Cloud for its Drupal and WordPress sites today. The full story is in our University of Missouri case study.
The script is the easy part. The shared setup underneath it is what makes the script safe to run.
Mizzou's speedup came from standardizing first. Pick one Drupal setup and move your sites onto it. Sites that can't follow the standard yet stay out of the automation until they can.
Our guide to patching a Drupal fleet without manual deployments shows what that shared setup can look like.
The case study doesn't show Mizzou's own scripts, but you can build the same loop on Upsun Cloud today.
Describe the update as a source operation in your .upsun/config.yaml file, and run it on an environment set aside for testing, as the docs recommend. That environment starts with a copy of production's data by default.
Once it works on one site, the Upsun Cloud CLI can run the same update across every project in your fleet, so one script replaces hundreds of manual updates.
Mizzou kept a person checking the results, and that's the right habit to copy. Merge into production only after someone has reviewed the update, and keep in mind that production gets an automated backup every day by default.
Automation multiplies whatever process you already have, good or bad.
If your sites don't share a setup, a script has nothing consistent to work with, so standardize them first. And if there are no tests and no review step, a loop that updates 300 sites will update all 300, whether or not the release broke something.
If you look after a Drupal fleet, start a 15-day free trial or talk to an expert.
By hand, it depends on how the site is built. At the University of Missouri it took about two hours per site. With a standard setup and an automated, tested process, the team brought that down to two or three minutes, plus review.
You can automate most of the steps: updating dependencies, running database updates and deploying to a test environment. It's worth keeping a person in the loop before production. Mizzou kept a QA step.
