Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2001 23:02:24 -0400
From:      Doug Poland <dougp@polands.org>
To:        questions@freebsd.org
Subject:   Can I do this with CVS?
Message-ID:  <20010821230224.A43838@polands.org>

next in thread | raw e-mail | index | archive | help
Hi,

I want to create a cvs module that mirrors all the config files I've
changed on a given system.  For example, I have a machine named myhost.
I want to checkin 

	/boot/kernel.conf
	/boot/loader.conf
	/etc/rc.conf
	/etc/hosts
	/etc/fstab
	/etc/inetd.conf
	/etc/services
	/etc/sysctl.conf
	/usr/local/etc/rc.d/dnetc.sh
	/usr/local/squid/squid.conf

	etc...

So that if I want to re-create the config of a given machine, I 
could do something like: 

	% su -
	# cd /
	# cvs -d :pserver:cvsuser@mycvserver/usr/local/cvs checkout myhost.conf

and all the conf files will be created in their respective locations.

The stumbling block I'm hitting is creating a repository that is the root
of my filesystem.  For example, 

	cvs import . bogus-vendor-tag bogus-release-tag

attempts to checkin my entire filesystem before it pukes on an entry in /dev.

Is it possible to create a repository (or module?) with nothing in it?  Then
could I selectively add only certain files in the directory hierarchy?

Many thanks for your help and consideration.

-- 
Regards,
Doug

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010821230224.A43838>