Last active
January 29, 2020 10:01
-
-
Save davidalexander/6643271 to your computer and use it in GitHub Desktop.
rsync the media directory from live site to local site. Useful when you need imagery which is (correctly) ignored by version control.
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
rsync \ | |
--verbose \ | |
--progress \ | |
--stats \ | |
--compress \ | |
--rsh=/usr/bin/ssh \ | |
--recursive \ | |
--times \ | |
--perms \ | |
--links \ | |
--owner \ | |
--group \ | |
--human-readable \ | |
--ignore-existing \ | |
--exclude "*.flv/" \ | |
--exclude "*.js/" \ | |
--exclude "*.css/" \ | |
--exclude "*.less/" \ | |
--exclude "css/" \ | |
--exclude "css_secure/" \ | |
--exclude "catalog/category/cache/" \ | |
--exclude "catalog/category/.cache/" \ | |
--exclude "catalog/product/cache/" \ | |
--exclude "import/" \ | |
--exclude "js/" \ | |
"[email protected]:/var/www/site/media/*" \ | |
/Users/Sites/site/media/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment