Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rsync the media directory from live site to local site. Useful when you need imagery which is (correctly) ignored by version control.
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/" \
"user@123.123.123.123:/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