I have quite a lot of custom files - mostly config files for etc but also other dirs as well as some binaries - I would like to merge to a new system.
I'm placing them all in ./overwrite/ so I have a structure similar to:
Code: Select all
./overwrite/etc/apache2
./overwrite/etc/pam.d
./overwrite/usr/local/I can then do this:
Code: Select all
rsync -avb --suffix=.custom ./overwrite/ /So at this point I'd probably need to search / for all the text files ending in .custom (or whichever suffix I used) ignoring the binaries and running "diff" on $file.custom and $file.
I was thinking of placing each diff in the same dir where $file is and naming it ._cfg$file (or whichever format is valid) so that I could then simply run dispatch-conf to interactively check and merge the changes.
I like the way dispatch-conf works, and I was wondering if I could use it for this.
Has anyone already done this?
Any suggestions or alternatives?
Thanks

