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

problem: hot-backup failing with access denied error

From: Norbert Unterberg <nunterberg_at_gmail.com>
Date: 2006-11-14 13:38:43 CET


We are running svn 1.3.2 on Windows. For backup we run hot-backup on
our repositories. Unfortunately hot-backup is failing to delete the
outdated FSFS repositores from the backup folder. The error is:

Removing old backup: \\dbtinstall\dba-backup\SVN-Backup_new\svn\dc-0
Traceback (most recent call last):
  File "d:\Repos\hot-backup.py", line 151, in ?
  File "d:\programme\python23\lib\shutil.py", line 142, in rmtree
    raise exc[0], (exc[1][0], exc[1][1] + ' removing '+arg)
OSError: [Errno 13] Permission denied removing

Analysis shows:
 * the db\format file is write protected on all our repositories
 * hot-backup.py keeps the write protect flag when performing the copy
 * The shutil.rmtree(old_backup_subdir) command in hot-backup.py fails
because the file is write protected.

This is not a permission error; the script works fine if I manually
remove the "w" flag from all files.

I do not speak enough python to know how to deal with this.
Any ideas?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 14 13:39:26 2006

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

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