From owner-freebsd-stable@FreeBSD.ORG Tue Apr 22 05:33:10 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FDBE37B401; Tue, 22 Apr 2003 05:33:10 -0700 (PDT) Received: from solfertje.student.utwente.nl (solfertje.student.utwente.nl [130.89.167.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6889943FD7; Tue, 22 Apr 2003 05:33:09 -0700 (PDT) (envelope-from dalroi@solfertje.student.utwente.nl) Received: from solfertje.student.utwente.nl (failways.internal [10.236.150.2]) by solfertje.student.utwente.nl (Postfix) with ESMTP id 2F698ED; Tue, 22 Apr 2003 14:36:25 +0200 (CEST) Date: Tue, 22 Apr 2003 14:33:12 +0200 (CEST) From: Alban Hertroys To: Doug Barton In-Reply-To: <20030420161118.P631@znfgre.tberna.bet> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20030422123625.2F698ED@solfertje.student.utwente.nl> cc: Anton Zavrin cc: freebsd-stable@freebsd.org Subject: Re: Mergemaster Request (RE: mergemaster tips) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alban Hertroys List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 12:33:10 -0000 On 20 Apr, Doug Barton punched keys in this particular order: > On Mon, 21 Apr 2003, Marc Schneiders wrote: >> So here is the feature request: Is it possible to have a new option in >> mergemaster: >> >> -b (path) Make a backup of every file that mergemaster >> overwrites, whether on user input or automatically. >> Mergemaster writes the files in a directory with a >> timestamp name (YYYYMMDD-HHMMSS) under the path >> indicated. >> >> This would give us an archive of the config changes on the machine. > > Very interesting idea. Try the attached patch and let me know what you > think. I used -P for "preserve," because I like the semantics better. This > is all subject to change since I just whipped this up, but it should be > enough for you to play with. > > Doug Wouldn't it be easier to use CVS to "backup" your /etc? That way you will have an archive of the actual changes, instead of the changed files. The extra work involved seems minimal (do an import now, do commits after every mergemaster). I think it would be difficult to drop very old backups that way, though... And you'll probably want to have the CVS repository on a different machine. Just some thought. -- Alban Hertroys http://solfertje.student.utwente.nl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No, it's not a bug! It's a six-legged feature!