[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Best practices: managing configuration files

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2003-08-13 01:09:31 CEST

At 11:28 AM -0700 8/12/03, John Locke wrote:
>I was able to import the whole /etc directory into Subversion, but I
>can't seem to easily check it back out in place. In other words, I
>can't make the original directory a working copy using Subversion.
>Am I overlooking something?

Well, doing this directly in such a critical place as /etc gives me
the willies, but it's your neck, I suppose. I can, anyway, help with
the "check it back out on top of itself" problem. Do this one time;
after that, svn will work directly on the files:

        svn co http://host/wherever/whatever/etc /tmp/etc # check out temp copy
        cd /tmp/etc
        find . | cpio -pdlmuv /etc

I'm assuming here that /etc and /tmp are on the same partition; in
that case, the "-l" makes cpio merely link the files, not copy them.
If your /tmp and /etc are not on the same partition (my, you *are*
adventurous, aren't you?), then put the one-time checkout somewhere
on the same ptn as /etc. It could be, say /etc/svn-etc-tmp.

And, of course, you'll need to do all this as root, since it *is* /etc and all.

You might want to pause between that "svn co" and that "find|cpio" to
compare the two directories vewy, VEEEEWY cawfully, checking that all
the expected files and directories exist, that their contents are
identical, and that their permissions are identical. If that ain't
so, don't proceed!

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 13 01:10:21 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.