Grzegorz Dostatni wrote:
> I am trying to setup a svn repository for /etc for a number of servers.
> Has anyone tried doing that?
>
> I am currently having problem with the intial checkout. I can import /etc
> tree into the repository, but subversion will not allow me to overwrite
> files on checkout. For a good reason :-)
>
> Is it possible to setup the repository without rebooting the server (and
> mounting /etc from a knoppix cd or something similar).
>
> Any help will be greatly appreciated.
The checkout operation sounds dangerous.
What about :
; cd /
; svn checkout file:///repo/etc etc-repo
; ( /bin/mv /etc /etc.orig ; /bin/mv /etc-repo /etc )
Although this may break your host in terrible and mysterious ways.
I wrap the two moves in parens so that we invoke a subshell
(assuming bash) before performing the move so that, hopefully,
any of the shell's dependence on the files in there are minimized.
Note, the second invokation of /bin/mv needs to run without an etc
directory (eeek!).
Also this may present a problem if any programs have any open
file descripters to files in the original /etc since those open
file descripters will still point to the open files now located
in /etc.orig/
Good Luck. Your 'boot to alternate OS' idea sounds less risky.
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 22 23:12:19 2005