Problem remote sync with several directories/files

Matt McCutchen matt at
Mon Jul 14 22:53:32 GMT 2008

On Mon, 2008-07-14 at 13:42 +0200, christoph.m at wrote:
> does anyone know what is wrong with that command line ?
> rsync -e "/<path to ssh>/ssh -i/<keypath>/.ssh/id_rsa " -vaoRrn  user at hostname:'/root/directory/./dirToSync1' :'/root/directory/./dirToSync2' '/dir/to/destination'
> Calling it with real paths the rsync command overview arises.

I don't see anything wrong with the command, but note that the syntax
you're using for multiple remote source arguments is new in rsync 3.0.0;
older rsync clients will reject it with an error.  If your rsync is
older than 3.0.0, try this syntax instead:

rsync -e "/<path to ssh>/ssh -i/<keypath>/.ssh/id_rsa " -vaoRrn user at hostname:'/root/directory/./dirToSync1 /root/directory/./dirToSync2' '/dir/to/destination'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url :

More information about the rsync mailing list