Quote:
Originally Posted by jhwilliams
Or any other method of accomplishing this (other than the Git idea -- it's too late for me on this system.)
|
Nope, it's not too late. Though, my solution will entail a decent bit of work
1) Install VirtualBox, VMWare, KVM or whatever virtual machine software you like.
2) Install your distro+version on the virtual machine
3) Install all the same packages on your real machine into your virtual machine. See
this other thread for how to handle that efficiently.
4) Tar your virtual machine's /etc directory
5) Move the tarball to your physical machine through whatever method you like (e.g. shared folders, usb pendrive, email)
6) Un-tar the virtual machine's etc directory in some temporary location
7) import the virtual machine's etc into whatever version control system you like
8) verify the import by checking out the files in another location
9) do a recursive copy (e.g. "cp -a" ) from you production /etc on top of the just-checked-out version
10) commit your "changes"
At that point, you should have something very, very close to what you were originally after... just without any step-wise revision history.
Then you need to decide whether you want your production /etc directory to be tied into your version control, or if you want to mess with the files elsewhere and "publish" changes to /etc.
If your /etc is going to tied into your repository, you'll likely need to boot off a live CD and do the checkout into your /etc, but make a backup copy just in case.