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

svnadmin hot-backup.py, hotcopy "exists and is non-empty"

From: Michael Glaesemann <grzm_at_myrealbox.com>
Date: 2004-08-13 10:43:01 CEST

Hi!

I'm trying to set up hot backups using the hot-backup.py script
supplied with the source.

Like some others, I installed using a binary installer (Martin Ott's
wonderful Mac OS X package for subversion-1.0.6). I downloaded the
1.0.6 source and hand-edited hot-backup.py to allow svnlook and
svnadmin to work. In particular, I removed the @SVN_BINDIR@ entirely
and exported /usr/local/bin as part of the path prior to running the
hot-backup.py script. It appears this works, as I do not get the
IndexError: list index out of range" error I was getting prior to
hand-editing.

When running hot-backup.py from the command line, I get "Unable to
backup the repository." For example:

/volumes/flotsam/backup/svn/backups svn$ ../hot-backup.py
/usr/local/repos /volumes/flotsam/backup/svn/backups
Beginning hot backup of '/usr/local/repos'.
Youngest revision is 7
Backing up repository to
'/volumes/flotsam/backup/svn/backups/repos-7'...
Unable to backup the repository.

Just checking the directory:
/volumes/flotsam/backup/svn/backups svn$ ls -la
total 0
drwxr-xr-x 3 svn admin 102 13 Aug 17:29 .
drwxr-xrwx 4 svn admin 136 13 Aug 17:01 ..
drwxr-xr-x 9 svn admin 306 13 Aug 17:26 repo-6

Following a hint I found in the archives, I tried running svnadmin
hotcopy directly to find the specific error:
endrew:/volumes/flotsam/backup/svn/backups svn$ svnadmin hotcopy
/usr/local/repos /volumes/flotsam/backup/svn/backups/repos-7
--clean-logs

This worked. Of course, when I tried it again, it returned this error:
svn: '/volumes/flotsam/backup/svn/backups' exists and is non-empty

Indeed it exists and is not empty, as it has the backup that was
previously there. When I empty the directory, running svnadmin hotcopy
works fine (once, of course).

Any hints as to what might not be working with the hot-backup.py
script? I'm suspecting something (besides the @SVN_BINDIR@) gets
changed during compiling that I haven't changed. I'm on Mac OS X 10.3.5
running Subversion 1.0.6.

Thanks for any hints or suggestions as to how I can get this working.

Michael Glaesemann
grzm myrealbox com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 13 10:43:53 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.