Sync large files directories across Pantheon multidev sites

Once a project's files directory gets too big you will no longer be able to manually sync files across sites via the Pantheon UI.

But you can continue to sync files across environments manually using Terminus and a Terminus Rsync plugin

  1. Install Terminus
  2. Install the Terminus Rsync plugin

Below are some example commands using the Terminus rsync plugin

How to Sync the files directory of a Pantheon site to your local current working directory:

Ex: terminus remote:rsync [site-env-hash].envName:files .

Or: terminus remote:rsync 55555-5555-5555-555555555.pr-91:files .

How to sync the files directory in the current working directory to a Pantheon multidev site

terminus remote:rsync ./files/ [site-env-hash].envName:files

terminus remote:rsync ./files/ 55555-5555-5555-555555555.pr-91:files