*BSD News Article 96199


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news-peer.sprintlink.net!news.sprintlink.net!Sprint!EU.net!Ireland.EU.net!maths.tcd.ie!not-for-mail
From: dwmalone@maths.tcd.ie (David Malone)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: 'rdist' to keep several FBSD systems in-sync?
Date: 26 May 1997 18:38:52 +0100
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Lines: 118
Sender: mathnews@graves.maths.tcd.ie
Message-ID: <5mchrc$grb@graves.maths.tcd.ie>
References: <3387f6f2.2005046@news.ibm.net.il>
NNTP-Posting-Host: graves.maths.tcd.ie
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41632

enoch@wexler.s_p_a_m.co.il (Enoch Wexler) writes:

>While CVSUP seems ideal for keeping the "master" system up-to-date, I
>wonder what is your recommended method to keep other LAN connected
>FreeBSD machines up-to-date too.

>Will 'rdist' do this work reliably? If so, 'distfile' examples would
>be appreciated.

We do use rdist to keep a selection of machines in sync here.
We have 5 sun machines which are kept in sync, and 4 FreeBSD
machines. It seems to work quite well - apart from the odd accident
where someone makes a change and then has it blatted the next
night.

It also workd quite well for password files, /etc/hosts and a variety
of other things. I've tagges on one of our distfiles.

	David.

#
# rdist control file.
# $Id: distfile,v 1.29 1997/03/22 18:25:43 dwmalone Exp dwmalone $
#

FILES=(/local /sbin /bin /usr /etc /compat /root /stand /lkm)

EXCLUDE=(/kernel* /local/tmp /local/man/* /local/etc/RCS /local/etc/distfile
	/local/rdist-free-zone
	/local/etc/daily* /local/etc/weekly* /local/etc/monthly*
	/local/mmdf/mmdftailor /local/mmdf/RCS /local/mmdf/table
	/usr/local /usr/lost+found
	/usr/share/man/cat*
	/etc/backups /etc/fstab /etc/hostname* /etc/dumpdates* /etc/exports
	/etc/inetd.conf /etc/XF86Config /etc/mtab /etc/ntp.drift
	/etc/rc* /etc/rmtab /etc/xtab /etc/utmp /etc/RCS 
	/etc/motd /etc/named.d /etc/printcap /etc/hosts.allow /etc/ccd.conf
# Group and passwd are handled separately.
	/etc/syslog* /etc/tty* /etc/bootptab* /etc/sysconfig
	/etc/master.passwd /etc/group /etc/passwd /etc/ptmp
	/etc/spwd.db /etc/pwd.db /etc/master.passwd.tmp
	/local/.chain0 /usr/.chain0
	/usr/X11R6/lib/X11/xdm/authdir /usr/X11R6/lib/X11/xdm/xdm-errors
	/usr/X11R6/lib/X11/xdm/xdm-pid /etc/crontab
	/root/.history /root/.bash_history /root/.rhosts
# Source is huge, only update when needed.
	# /usr/src
# Mathematica password file
	/local/etc/mathpass
	)


#
# From here are machine specific lists
#	- This should contain a list of the files specific to each
#	  machine, and then each machine should be rdisted except
#	  files specific to the server and the target ( and arc ).
#

SYNGEEXCLUDE = ( /local/exported /usr/lib/X11 /usr/X11R6/700X
		/usr/diskless_ftp /etc/resolv.conf
		)

SALMONEXCLUDE=( /local/etc/update_passwd
		/local/erpcd /local/etc/eservices /local/etc/acp_logfile
		/local/etc/acp_keys /local/etc/acp_passwd /local/etc/acp_dialup
		/local/mmdf/mail-usage.pl /local/mmdf/lib/mlist.help
		/local/lib/majordomo
		/local/bin/passwd
		/local/etc/badpasswds.db
		/local/etc/updates
		/etc/hosts.extra
		/local/etc/httpd.conf
		)
BOOLEEXCLUDE =(
		)
GRAVESEXCLUDE =(
		)
#
# Actual dist rules
#

${FILES} -> salmon.maths.tcd.ie
	install -oremove,chknfs,chkreadonly;
	except ${EXCLUDE};
	except ${SALMONEXCLUDE};
	except ${SYNGEEXCLUDE};
	except_pat ( /core\$ );

${FILES} -> boole.maths.tcd.ie
	install -oremove,chknfs,chkreadonly;
	except ${EXCLUDE};
	except ${BOOLEEXCLUDE};
	except ${SYNGEEXCLUDE};
	except_pat ( /core\$ );

${FILES} -> graves.maths.tcd.ie
	install -oremove,chknfs,chkreadonly;
	except ${EXCLUDE};
	except ${GRAVESEXCLUDE};
	except ${SYNGEEXCLUDE};
	except_pat ( /core\$ );

#
#	Ridtsing of /usr/local
#

USRLOCALFILES=( /usr/local )

USRLOCALEXCLUDE=(/usr/local/man/cat* /usr/local/com/emacs/lock )

SYNGEUSRLOCALEXCLUDE=(/usr/local/news-temp)

${USRLOCALFILES} -> salmon.maths.tcd.ie
	install -oremove,chknfs,chkreadonly;
	except ${USRLOCALEXCLUDE};
	except ${SYNGEUSRLOCALEXCLUDE};
	except_pat ( /core\$ );