Why is rsync daemon truncating this path? -
i'm trying synchronize set of remote files via rsync daemon, resulting path missing initial path element.
$ rsync -hravp ftp.ncbi.nih.gov::refseq/h_sapiens/readme 2015-05-11/ receiving incremental file list created directory 2015-05-11 h_sapiens/ h_sapiens/readme 4,850 100% 4.63mb/s 0:00:00 (xfr#1, to-chk=0/2) sent 51 bytes received 5,639 bytes 3,793.33 bytes/sec total size 4,850 speedup 0.85 $ tree 2015-05-11/ 2015-05-11/ └── h_sapiens └── readme
notice resulting tree missing first part of remote path ("refseq").
i realize can append first element of remote path destination path, seems unlikely (to me) intended behavior of rsync.
it's worth noting comparison rsync -hravp refseq/h_sapiens/readme 2015-05-11/
(where source local file) correctly creates full relative path under destination directory.
see rsync description:
connecting rsync server
...
using rsync in way same using rsh or ssh except that:
- you use double colon :: instead of single colon separate hostname path.
- the first word of "path" module name.
you can module names with
rsync -hravp ftp.ncbi.nih.gov::
Comments
Post a Comment