-R option -> source directories from remote

Wayne Davison wayned at samba.org
Fri Jul 4 08:25:16 GMT 2008


On Fri, Jul 04, 2008 at 10:08:49AM +0200, christoph.m at freenet.de wrote:
> Does anyone have an idea how to "change" to a directory on remote maschine
> to use relative paths (-R) ?

Starting with 2.6.7 you can insert a dot dir into any source path to
indicate where the duplicating of directories starts:

rsync -R remotehost::mod/some/./path/1 ::mod/other/./dir/2 /dest/

See the --relative option in the manpage:

http://rsync.samba.org/ftp/rsync/rsync.html

..wayne..


More information about the rsync mailing list