When we are migrating a site, rsync is our friend. Let's get intimate and hands on with file synchronization.
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ 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 | ||||
---|---|---|---|---|
| ||||
$ ssh mysite.test |
-e 'ssh -axp 1022'
By default, symbolic links are not transferred at all.
...