Skip to main content

Notes on Moving a Pantheon Site

Side Notes Pre-migration:

SMTP Relay & Mail Log - blast email connected to User Feed Import failed; some emails were sent, but most failed. Was this possibly flood protection on the Mail Relay?  No logging was present; recommend a mail logging module here. (Confirm best option w/ community.)

20 +/- Custom Modules  (GPT had opinionated comments about code-base.)

 

Image
Rando Patches

 

Clone a Pantheon Site to a New Plan — Documented Checklist

Overview

Use this procedure to copy a site’s code, database, and files from one Pantheon site (any plan) to another. Record team‑specific notes in the <details> blocks provided.

Prerequisites

  • Developer‑level access to both Pantheon sites
  • SSH key registered with Pantheon
  • Git installed locally or CI pipeline access
  • Terminus CLI logged in
    terminus auth:login --machine-token=<TOKEN>

 

Notes

Step 1 – Export backup archives from the source site

  1. In the source Dashboard, open Dev → Backups.
  2. Download (or copy the URLs for) the latest Database and Files backups.
Notes

Step 2 – Push code into the target site


git clone ssh://codeserver.dev.<SOURCE_ID>.drush.in:2222/~/repository.git source-site
cd source-site
git remote add target ssh://codeserver.dev.<TARGET_ID>.drush.in:2222/~/repository.git
git push target main   # use 'master' if that’s the default branch
  
Notes

Step 3 – Import database & files into the target site

A. Dashboard method (simple, < 500 MB each)

  1. Open the target Dev environment.
  2. Click Database / Files → Import.
  3. Paste each backup URL → Import.

B. Terminus CLI method (scriptable, any size)


terminus import:database TARGET_SITE.dev /path/to/backup.sql.gz -y
terminus import:files    TARGET_SITE.dev /path/to/backup-files.tar.gz -y
  
Notes

Step 4 – Post‑restore tasks

  • drush updb -y — apply DB updates
  • drush cim -y — import configuration
  • drush cr — rebuild caches
  • Re‑index Solr / Search API (if used)
  • Update base URL or domain settings if needed
Notes

Validation checklist

  • Site loads without errors on dev
  • Admin login works
  • Random content pages render correctly
  • File uploads/downloads succeed
  • Expected modules/themes enabled

Deploy

When validation passes, deploy Dev → Test → Live in the target site Dashboard.

Storage & housekeeping

  • Check disk usage under Site → Metrics
  • Delete old backups if storage is tight