[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

hot-backup.py problem?

From: Toby Watson <t.d.watson_at_durham.ac.uk>
Date: 2004-05-03 21:44:21 CEST

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
Received on Mon May 3 21:45:07 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.