You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Les Mikesell <le...@gmail.com> on 2006/10/27 17:28:17 UTC

Re: How can I add a number of files scattered over the directory tree?

On Fri, 2006-10-27 at 09:38 -0400, Thomas Harold wrote:

> Putting /etc under version control is what finally got me comfortable 
> enough with SVN to start our migration away from SOS/VSS.  Originally, I 
> just created a local repository on the same machine to hold the 
> information, but now we have a central SVN server running in a Xen DomU.

Has anyone come up with a scheme to treat /etc from a set of similar
machines as branches?  I've always thought it would be nice to be
able to see a history of diffs among a set of machine configurations
and perhaps pull changes from one to another but could never figure
out how to get it started. Another nice touch would be to push
the package database used by rpm/apt-get, etc. into a subversion
repository so you could easily duplicate program installations
across machines with exactly matching versions.

> I'm currently working on getting our remote web servers (at a data 
> center) to transmit their web/ftp log files to the central SVN server 
> over ssh.  Since SVN is so efficient over the wire, I'm thinking that 
> I'm going to schedule a job every few hours (maybe as often as every 
> hour) that will do the add/commit.  Basically using SVN as a fancy 
> rsync, but with full history and the source machine can't cover its tracks.

If you are just using it for backups and history, you might look
at backuppc.  It can use rsync as the tranport, compresses the
files, and uses hardlinks to compress all duplicates into one
copy so you can keep a long history online.

-- 
  Les Mikesell
   lesmikesell@gmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How can I add a number of files scattered over the directory tree?

Posted by Alan Barrett <ap...@cequrux.com>.
On Fri, 27 Oct 2006, Les Mikesell wrote:
> > > Has anyone come up with a scheme to treat /etc from a set of
> > > similar machines as branches?
> >
> > I just use ${REPO}/hosts/${hostname}/${dirname} for that.  (Not
> > using the conventional {trunk,tags,branches} layout.)
>
> But does subversion know the ancestry so you can see if some change
> was made on host1 before it was duplicated to host2 or afterwords?

I haven't done that (log message comments have been enough so far), but
I suppose you could use svnmerge.py to merge between the host branches
(but try to make one the "master" so you don't have too many merges in
too many directions), or use mucc to copy stuff between host branches.

> Can you tell it to make a file or directory on host3 identical to the
> corresponding one on host2?

file=etc/fstab
source=${REPO}/hosts/host2 rev=123
target=${REPO}/hosts/host3
mucc \
    rm ${target}/${file} \
    cp ${rev} ${source}/${file} ${target}/${file}

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How can I add a number of files scattered over the directory tree?

Posted by Les Mikesell <le...@gmail.com>.
On Fri, 2006-10-27 at 20:16 +0200, Alan Barrett wrote:
> On Fri, 27 Oct 2006, Les Mikesell wrote:
> > Has anyone come up with a scheme to treat /etc from a set of similar
> > machines as branches?
> 
> I just use ${REPO}/hosts/${hostname}/${dirname} for that.  (Not using the
> conventional {trunk,tags,branches} layout.)

But does subversion know the ancestry so you can see if some
change was made on host1 before it was duplicated to host2
or afterwords?  Can you tell it to make a file or directory
on host3 identical to the corresponding one on host2?  I
want to be able to track the changes across machines that
start out as clones and have a simple way of propagating
changes made anywhere to some or all the others.

-- 
  Les Mikesell
   lesmikesell@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How can I add a number of files scattered over the directory tree?

Posted by Alan Barrett <ap...@cequrux.com>.
On Fri, 27 Oct 2006, Les Mikesell wrote:
> Has anyone come up with a scheme to treat /etc from a set of similar
> machines as branches?

I just use ${REPO}/hosts/${hostname}/${dirname} for that.  (Not using the
conventional {trunk,tags,branches} layout.)

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org