Skip to content

Instantly share code, notes, and snippets.

@paales
Last active December 22, 2018 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save paales/6682242 to your computer and use it in GitHub Desktop.
Save paales/6682242 to your computer and use it in GitHub Desktop.
rsync a Magento installation
rsync -chavzP --exclude='path/to/installation/var/cache' --exclude='path/to/installation/.git' --exclude='path/to/installation/media/catalog/product/cache' --exclude='path/to/installation/var/tmp' --exclude='path/to/installation/var/session' --exclude='kiboots/var/report' --stats username@host:path/to/installation /destination/path
@Schrank
Copy link

Schrank commented Jun 9, 2017

To not have to look up the port for rsync (and the excludes are relative, so no need for absolute pathes imho):

rsync -e "ssh -p 22" -chavzP --exclude='var/cache' --exclude='.git' --exclude='media/catalog/product/cache' --exclude='var/tmp' --exclude='var/session' --exclude='kiboots/var/report' --stats username@host:path/to/installation /destination/path

@mokanfar
Copy link

thx.

exclude kiboots/var/report should be path/to/installation/var/report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment