On 08/19/2010 04:12 PM, David Montminy wrote: > I have limited experience with SVN, and I feel like I'm going in the > wrong direction. Let me explain: > > I need to mirror several SVN repositories from server A to server B. > What I would really like is to be able to do this: > > svnadmin hotcopy us...@servera:/repos_source > us...@serverb:/repos_destination > > To make a live, workable copy in case of trouble. But nowhere in the > documentation it says that svnadmin can support remote user/server. So > I'm basically trying to build a script that does a local hotcopy than > rsync the entire thing to a remote server... > > Aside from svnsync (which I don't want to use because you need to create > a user in each repository) is there anything else I can try? > > > David Montminy > I am doing it "wrong", but I often just rsync the /svn directory, then use svn switch on local checked-out repos. Never had a problem with it, but I am using it as a single user repo. One problem with this is if the repo is in use there will be lost data.
However, a "right" way to do it could be 1. initialize remote repo 2. svnadmin dump /svn/repo > svn.dump 3. scp svn.dump [email protected]:/svn/ 4. (remote) svnadmin load /svn/ < svn.dump Should be reasonably easy to script, and you could mv /svn/ /svn.date in order to have revisions of repos. Jeremy _______________________________________________ mlug mailing list [email protected] https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
