[SATLUG] etc and home in version control
dkowis at shlrm.org
Fri Nov 9 09:09:47 CST 2007
Quoting Daniel Givens <daniel at rugmonster.org>:
> I'm in the process of setting up a couple new systems, one is my new
> desktop and the other my home server. I've been considering setting up
> some sort of version control system to aid me in tracking changes to
> my /etc and /home directories. I know this isn't exactly what a VCS is
> made for, but I think it would be a good way to save my butt in those
> times that I accidentally fsck up a config or decide I need to roll
> back some changes I made to a document. Yes, I saw the article on
> Slashdot yesterday talking about the Linux equivalent of Time Machine.
git works quite well. Cheap branches, cheap repos. Little bit
different paradigm than cvs or svn.
> I know most VCS's don't handle permissions and ownership, so that
> would be a problem. I've considered writing a hook script to take an
> inventory of the permissions, ACLs, and ownership at commit for easier
> restoration. While not a major limitation these days for any modern
> VCS, it would need to support binary files as well. Ideally, I would
> like to be able to do an auto-commit of sorts on certain files or
Git does. :) handle permissions and ownership i mean. I don't think
I'd VCS my home directories tho. Those could be big and scary. Backups
would be better in that case. Guarantee weekly restore points.
If you've got lots of disk space, you can also use LVM snapshots or something.
| www.ronpaul2008.com | www.sourcemage.org |
| Ron Paul for President! | SourceMage GNU/Linux |
More information about the SATLUG