-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The solution would be to use rsync over ssh instead of rsyncd. With rsyncd you can only access stuff inside the defined module.
On 08/05/13 10:44, [email protected] wrote: > 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. > - -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. [email protected] (work) Orlando, Florida [email protected] (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIAKykACgkQVKC1jlbQAQc23QCePBjjHXc9xufNtgxAtIPhZeks ySgAniIBM3v2EcqhEa1uOH22DWny9ux/ =yJa+ -----END PGP SIGNATURE----- -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
