Date: Tue, 21 Oct 2008 15:50:00 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, gamato@users.sf.net Subject: Re: easy way to upgrade from 6.3 to 7.1 (including port packages) Message-ID: <200810211350.m9LDo0Js077761@lurza.secnetix.de> In-Reply-To: <gdj6eq$45i$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
martinko <gamato@users.sf.net> wrote: > 1) I wonder if I could use mergemaster to compare 2 directories and > merge differencies as neccessary. To explain: I have all config files I > touch saved with full path somewhere in /root. And therefore I'd like > mergemaster or some other tool to compare all files in my backup > directory with newly installed (config) files. You can use mergemaster against any directory, not just /etc. This is especially useful when perforing a binary update, a cross update or similar things. For example, suppose you have a freshly installed system (including /usr/src) with a virgin /etc directory, and you've got a copy of an old etc directory (with local modifications) in /root/etc.old. Then you can do this: # mergemaster -D /root/etc.old And all new things will be merged into /root/etc.old. When you're done, simply copy /root/etc.old to /etc and reboot. (You might want to keep a copy of the original contents of the directory, just to be on the safe side.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code" (taken from comp.lang.awk FAQ)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810211350.m9LDo0Js077761>