Last active
May 12, 2021 15:40
-
-
Save kerasai/eaa000e296f6f1e094cd03ad018ce2d1 to your computer and use it in GitHub Desktop.
Pantheon RSYNC command to pull files, excluding the nonsense.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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