frodo@gmavt.net
2005-Jun-19 11:40 UTC
rsync version 2.6.3 protocol version 28 - hosts allow dows not work
Hello all. Rsync rocks, however I am having problems with two things: 1. The hosts allow directive does not allow the use of a hostname. (DNS is working for I can do a NSLOOKUP on the hostname and it resolves). If I put the IP address it works fine, problem is that we run DHCP at the office and my lease expires every 4 days. 2. Rsync is not logging to /var/log/rsyncd.log. The following is my /etc/rsyncd.conf file on my Gentoo 2005.0 (kernel 2.6.11-gentoo-r11 kernel) ---------------------------------------------------------------------- # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.conf,v 1.3 2004/07/15 00:11:37 agriffis Exp $ # Minimal configuration file for rsync daemon # See rsync(1) and rsyncd.conf(5) man pages for help # This line is required by the /etc/init.d/rsyncd script pid file = /var/run/rsyncd.pid uid = nobody gid = nobody use chroot = yes max connections = 10 pid file = /var/run/rsyncd.pid motd file = /etc/rsync/rsyncd.motd transfer logging = yes log format = %t %a %m %f %b syslog facility = local3 timeout = 300 [bjwbackup] path = /rsync/bweaver comment = Brent's Backup sync site read only = no guest ok = yes public = yes create mask = 0777 [jlbackup] path = /rsync/jliscenski comment = Joe's Backup sync site read only = no guest ok = yes public = yes create mask = 0777 --------------------------------------------------------------- I would also like to know how to set the protections to 777 on the files/dirs that I create on my rsync mirror. I would like to use the delete option so that it totaly keeps my laptop in sync w/ my rsync mirror. What am I missing here? Any help is GREATLY appreciated for I am using this to backup my laptop to my linux box, and rsync is the way to do it!
Wayne Davison
2005-Jun-21 16:42 UTC
rsync version 2.6.3 protocol version 28 - hosts allow dows not work
On Sun, Jun 19, 2005 at 07:40:23AM -0400, frodo@gmavt.net wrote:> DNS is working for I can do a NSLOOKUP on the hostname and it > resolves.Yes, but can you do an nslookup on the IP and get the hostname? If not, rsync won't accept it. There are several options that will fix this: - Fix the DNS setup so that it keeps the reverse-DNS in sync with the forward-DNS. - Get someone to modify the DHCP setup at your office to map your system's MAC address to a constant IP address. - Periodically update the rsync.conf file with the latest IP number from an nslookup of the hostname (which the running rsync daemon will honor, since it re-reads the config file whenever a new connection comes in). - Switch over to using an ssh connection for the copy.> 2. Rsync is not logging to /var/log/rsyncd.log.Your config file doesn't define "log file", just "syslog facility". Either you need to modify the syslog setup to put local3 into that file, or tell rsync to use the file directly via the "log file" option.> I would also like to know how to set the protections to 777 on the > files/dirs that I create on my rsync mirror.If you want more permissive permissions than the source files, there's no way to get rsync to do that for you -- the closest you can come is to leave off the --perms option and manually expand the permissions of newly transferred files (updates to existing files will retain the destination's permissions). See also the patches/chmod-option.diff file in the rsync distribution for an option that lets you force pemission bits. ..wayne..
Seemingly Similar Threads
- Processed: Re: Bug#384638: Dom0 dows not boot with kernel package linux-image-2.6.16-2-xen-686 version 2.6.16-18
- association dows not grt foreign key
- Fwd: Re: Re: Cannot add/modify ACL through windows client
- Cross-compilers versus windows compilers (was optimal win dows R machine)
- How dows RoR work?