Svn - get the list of all repos on a server so I can svnsync
Posted
by egarcia
on Stack Overflow
See other posts from Stack Overflow
or by egarcia
Published on 2010-05-10T10:46:57Z
Indexed on
2010/05/10
10:54 UTC
Read the original article
Hit count: 409
I'm attempting to create a backup of my client's existing svn repositories, which is publicly available over http.
If possible, I'd like to be able to make new repositories automatically, from any computer, without having to give console access to the server to external parties (i.e. the users could do a ls
on my svn repo dir)
My problem is that I need to know the list of svn repositories on the server - it isn't a fixed list, since the user will add new repositories over time.
I'm able to list the repositories on an html page via Apache's mod_dav_svn
module, using the SVNListParentPath On
directive. I got this page: http://svn.ohwr.org/
My question is: what is the easiest way to obtain a usable list of such repositories? I'll need to parse that list in order to make syncs, probably using shell commands.
Must I parse the HTML with shell commands, or is there a better way to get that list?
© Stack Overflow or respective owner