martinko <[EMAIL PROTECTED]> 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) _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
