Re: Using GIT to store /etc (Or: How to make GIT store all file permission bits)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Riddoch
Date: Wednesday, December 13, 2006 - 10:06 pm

So, I've been making little repositories for appropriately related
stuff.  For example, I have a repository for my ~/.bashrc,
~/.bash_profile, ~/.bash_completions/*, and such.

I recall Linus's post in the "VCS Comparison Table" thread, and after
thinking about it, I decided the best thing to do would be to have a
couple extra files tracked in the repository, alongside other data.

I use a backup shell script to copy things from my system to the
repository, and then I run getfacl on it all to write out all the
details to a 'facl' file in my repository.  Then I can make a commit.

Then there's a restore shell script to copy things back to my system,
and restore ownership and permissions with setfacl.

I store the backup and restore scripts in the repository.  Paths are
currently hard-coded.  I'm sure there's a more flexible way to do
this, though I'd need some means of representing the correspondence
between content in the repository and files in my filesystem.


On 12/13/06, Daniel Barkalow <barkalow@iabervon.org> wrote:


-- 
epistemological humility
  Chris Riddoch
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Using git as a general backup mechanism (was Re: Using ..., Johannes Schindelin, (Tue Dec 12, 3:57 pm)
Re: Using git as a general backup mechanism, Junio C Hamano, (Tue Dec 12, 4:43 pm)
Re: Using git as a general backup mechanism (was Re: Using ..., Johannes Schindelin, (Tue Dec 12, 5:01 pm)
Re: Using GIT to store /etc (Or: How to make GIT store all ..., Chris Riddoch, (Wed Dec 13, 10:06 pm)
Re: Using git as a general backup mechanism, Steven Grimm, (Thu Dec 14, 4:33 pm)
Re: Using git as a general backup mechanism, Junio C Hamano, (Thu Dec 14, 5:33 pm)