rsyncd: --temp-dir outside of module or target target
frank.gruellich at here.com
frank.gruellich at here.com
Mon Aug 5 08:44:55 MDT 2013
Hi,
I'm running rsyncd in daemon mode started via xinetd. My
/etc/rsyncd.conf looks like:
[cache]
path = /mnt/tst_vol_aws/sat_p_cache/
comment = Cache Directory
use chroot = false
read only = false
uid = someone
gid = someone
dont compress = *
On the client I run:
/usr/bin/rsync --delete --ignore-errors -gpzsoltD --temp-dir=/mnt/tst_vol_aws/tmp/rsync -r /mnt/tst_vol_aws/sat_p_cache/ rsync://$server_ip/cache/
which gives me the following errors:
Aug 5 10:33:24 ip-10-209-129-163 rsyncd[3028]: rsync: mkstemp "/mnt/tst_vol_aws/sat_p_cache/mnt/tst_vol_aws/tmp/rsync//.80940_158425.n2v31h" (in cache) failed: No such file or directory (2)
Aug 5 10:33:24 ip-10-209-129-163 rsyncd[3028]: rsync: mkstemp "/mnt/tst_vol_aws/sat_p_cache/mnt/tst_vol_aws/tmp/rsync//.80940_158426.8v42GW" (in cache) failed: No such file or directory (2)
Aug 5 10:33:24 ip-10-209-129-163 rsyncd[3028]: rsync: mkstemp "/mnt/tst_vol_aws/sat_p_cache/mnt/tst_vol_aws/tmp/rsync//.80940_158427.5LDOmB" (in cache) failed: No such file or directory (2)
It seems it tries to create --temp-dir inside the module or target path.
That's not desired in my case as rsync is started via lsyncd which
watches /mnt/tst_vol_aws/sat_p_cache/ for changes, so rsync doing
temporary changes there would cause lsynd to spin in circles. The
lsyncd documentation recommends to have --temp-dir outside, eg. in
/tmp/. However, I fail to get that configured. I tried setting the
module path to /mnt/tst_vol_aws/, do rsync to
rsync://$server_ip/cache/sat_p_cache/ with a --temp-dir=tmp/rsync/,
however, that resulted in a pretty similar error message (clueing that
it's actually the target path defining the root for --temp-dir. The
--inplace option is also not a way to go.
Any idea how to do this? Thanks a lot.
Kind regards,
Frank.
More information about the rsync
mailing list