Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Exclude styles directory when rsyncing.

When we are migrating a site, rsync is our friend. Let's get intimate and hands on with file synchronization.

...

Code Block
languagebash
themeFadeToGrey
$ rsync -razv --delete --exclude=css --exclude=*_cache --exclude=js --exclude=googleanalytics --exclude=xmlsitemap \
  --exclude=backup_migrate --exclude=styles user@domain.com:/path/to/remote/files/ \
  /path/to/local/files/

...

Code Block
languagebash
themeFadeToGrey
$ ssh mysite.test


  -e 'ssh -axp 1022' 


By default, symbolic links are not transferred at all.

...