You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Toby Watson <t....@durham.ac.uk> on 2004/05/03 19:44:21 UTC

hot-backup.py problem?

Dear All,
 
I really love subversion and am starting to become dependent on it so I
thought it was a good idea to have backups of my repos. I hold them all
underneath a root of /svn, e.g. /svn/repoone /svn/repotwo etc.
 
If I run ./hot-backup.py /svn /tmp/testbac, for example, I get:
 
Beginning hot backup of '/svb'.
Traceback (most recent call last):
  File "./hot-backup.py", line 97, in ?
    youngest = string.strip(stdout_lines[0])
IndexError: list index out of range

Looking back over old posts it seems that some other users have
experienced the problem. I looked at line 97 in the script and found
that this does:
 
youngest = string.strip(stdout_lines[0])
 
which is fine in itself. However, this is coming from:
 
infile, outfile, errfile = os.popen3(svnlook + " youngest " + repo_dir)
 
which also appears fine. However, if I run svnlook youngest /svn I get:

svn: Can't open file '/svn/format': No such file or directory

where is this "format" coming from?

If I do an svnlook youngest /svn/testrepo it works fine but clearly this
means re-jigging the backup script every time a repo is created.

Does anyone have any ideas about this?

Many thanks,

Toby.



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


Re: hot-backup.py problem?

Posted by John Peacock <jp...@rowman.com>.
Toby Watson wrote:

> underneath a root of /svn, e.g. /svn/repoone /svn/repotwo etc.
>  
> If I run ./hot-backup.py /svn /tmp/testbac, for example, I get:

hot-backup.py assumes you are passing it the toplevel directory of a repository, 
not some random directory above that in the tree.  Try something like this:

	cd /svn
	ls | xargs -i ./hot-backup.py /svn/\{} /tmp/testbac/\{}

NOTE: NOT TESTED!  You need to figure out a way to call the hot-backup script on 
each repository independently.

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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