Hi I've got rsync setup to replicate DNS for an irc network I help run. I'm the primary DNS, so I use the rsync client to connect to a friend running another DNS server, and he has the rsync daemon setup. the conf is as follows log file = /root/rsync.log [tinydns] path = /etc/tinydns/root/ use chroot = no max connections = 2 read only = false list = false uid = root gid = wheel auth users = dnssynch secrets file = /etc/rsyncd.secrets strict modes = true hosts allow = *ua.sprint-hsd.net transfer logging = true permissions on the target directory are drwxrwsr-x 3 root wheel 512 Sep 10 00:42 root when I issue the command /usr/local/bin/rsync -az --password-file=.secrets data.cdb dnssynch@24.224.189.127::tinydns/etc/tinydns/root/data.cdb it returns me to the system prompt with no errors or warnings. However on the target machine, the log file shows the following messages 2003/09/10 00:09:27 [14643] rsync to tinydns/etc/tinydns/root/data.cdb from dnssynch@user163.net561.ua.sprint-hsd.net (65.40.246.163) 2003/09/10 00:09:28 [14643] mkstemp /etc/tinydns/root/.data.cdb.O5iagc failed: No such file or directory 2003/09/10 00:09:28 [14646] wrote 73 bytes read 1000 bytes total size 4169 Any help in figuring out what's gone wrong here would be greatly appreciated. Regards Dallas
On Tue, Sep 09, 2003 at 08:56:50PM -0700, Dallas Wright wrote:> /usr/local/bin/rsync -az --password-file=.secrets data.cdb dnssynch@24.224.189.127::tinydns/etc/tinydns/root/data.cdbSince the path is set to /etc/tinydns/root/, this command attempts to write a file named /etc/tinydns/root/etc/tinydns/root/data.cdb. Change the destination arg to be just "tinydns/data.cdb" after the "::" and all should be well.> it returns me to the system prompt with no errors or warnings.The version in CVS properly outputs a warning to the user, so it looks like that bug is fixed for the next version (though I can't find it mentioned in the NEWS -- hmm). There have also been some changes to improve the mkstemp error (to make it contain the full path to the temp file), but I note that it needs a little more improvement to handle daemon mode -- I'll look into that. ..wayne..