Using Pantheon's recommended base image, spin up a Terminus-capable environment and run maintenance tasks against our Pantheon account.
The script here authenticates with Pantheon using an environmental variable.
Once authenticated the following steps are taken:
- Backup the
test
environment prior to overwriting withlive
content - Clone the database and files from
live
totest
- Clear caches on
test
- Clone the database and files from
test
todev
(no backup) - Clear caches on
dev
- This process takes a very long time. Each clone operation can take between 30 and 60 minutes, due to the size of the uploaded files directory.