On Tue, 14 Nov 2006, Norbert Unterberg wrote:
> 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, (exc, exc + ' 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.
Norbert, are any other files in your repository backup area
> I do not speak enough python to know how to deal with this.
> Any ideas?
We either need to a) remove the write protection from the write
protected files before removing the old backup area or b) use a
Windows Python API which can ignore the write protection.
Received on Tue Nov 14 18:33:55 2006
- application/pgp-signature attachment: stored