From owner-freebsd-questions Tue Aug 21 20: 2:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mithras.erudition.net (mithras.erudition.net [209.9.98.138]) by hub.freebsd.org (Postfix) with ESMTP id CB31E37B401 for ; Tue, 21 Aug 2001 20:02:20 -0700 (PDT) (envelope-from dougp@mithras.erudition.net) Received: (from dougp@localhost) by mithras.erudition.net (8.11.4/8.11.1) id f7M32Oq44077 for questions@freebsd.org; Tue, 21 Aug 2001 23:02:24 -0400 (EDT) (envelope-from dougp) Date: Tue, 21 Aug 2001 23:02:24 -0400 From: Doug Poland To: questions@freebsd.org Subject: Can I do this with CVS? Message-ID: <20010821230224.A43838@polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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