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

hot-backup.py on windows

From: Andy Tawse <andy.t_at_newmediacollective.com>
Date: 2004-03-30 12:00:19 CEST

Hi there,

I'm trying to backup a repository on Windows XP using the hot-backup.py
script which I took out of the source.

The command I ran is C:\Program Files\Subversion>hot-backup.py
c:\svn\project2 c:\admin\svn_repos_backup

c:\svn\project2 is the location of my repository and
c:\admin\svn_repos_backup is where I want to back it up

I had some problem with :

  File "C:\Program Files\Subversion\hot-backup.py", line 97, in ?
    youngest = string.strip(stdout_lines[0])
IndexError: list index out of range

but I solved this by setting :

svnlook = "svnlook" and svnadmin = "svnadmin"

The problem I have now is :

Path to repo : project2
Beginning hot backup of 'c:\svn\project2'.
Youngest revision is 10
Backing up repository to 'c:\admin\svn_repos_backup\project2-10'...
Traceback (most recent call last):
  File "C:\Program Files\Subversion\hot-backup.py", line 131, in ?
    backup_subdir, "--clean-logs")
  File "C:\PROGRA~1\PYTHON~1.3\lib\os.py", line 566, in spawnl
    return spawnv(mode, file, args)
OSError: [Errno 2] No such file or directory

Seems like there is a problem with one of the paths when calling
svnadmin through os.spawnl (thats on line 131).

Has anyone had any similar problems or knows of solution?


Andy Tawse | Head Programmer
New Media Collective | www.newmediacollective.com
0870 4202313 | 07958 578399
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 30 12:00:56 2004

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