01.10Using Rsync over SSH
Prerequisites
First make sure that you are able to login to the remote host using ssh key authentication.
Basic Syntax
To sync files from a local directory to a remote directory use the following syntax:
rsync {options} -e ssh {source} {dest}
Example
Here is an example that exclude all .psd and .fla files:
rsync --exclude *.psd \
--exclude *.fla \
-avz -e ssh /local/dir/ user@remotehost:/remote/dir/

Leave a Reply