Using 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/

2 Responses to “Using Rsync over SSH”

  1. Kelly Brown says:

    Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting

  2. CHEMiST says:

    Thanks Kelly, appreciate the feedback!

Leave a Reply