Skip to content

Instantly share code, notes, and snippets.

@roman204
Forked from davidalexander/rsync_magento_media.sh
Created August 21, 2014 10:33
Show Gist options
  • Save roman204/e7750fcf900ca10fe617 to your computer and use it in GitHub Desktop.
Save roman204/e7750fcf900ca10fe617 to your computer and use it in GitHub Desktop.
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/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