Skip to content

Instantly share code, notes, and snippets.

@kerasai
Last active May 12, 2021 15:40
Show Gist options
  • Save kerasai/eaa000e296f6f1e094cd03ad018ce2d1 to your computer and use it in GitHub Desktop.
Save kerasai/eaa000e296f6f1e094cd03ad018ce2d1 to your computer and use it in GitHub Desktop.
Pantheon RSYNC command to pull files, excluding the nonsense.
# https://pantheon.io/docs/rsync-and-sftp/
# $ENV is dev/test/live or multidev
# $SITE is UUID
# Ran from the 'sites/default' directory (or applicable site directory).
rsync -rvlz \
--copy-unsafe-links \
--size-only \
--ipv4 \
--progress \
-e 'ssh -p 2222' \
--exclude css \
--exclude js \
--exclude styles \
$ENV.$SITE@appserver.$ENV.$SITE.drush.in:files/ ./files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment