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

Hot-backup.py won't create zipfiles bigger than 2GB

From: Donald Gordon <donald.gordon_at_xero.com>
Date: Tue, 15 Jun 2010 15:50:13 +1200

Hi

When I create a backup of a rather large repo (output ZIP over 2GB), hot-backup blows up with this error message:

Archiving backup to 'd:\SubVersion\Backups\bin\bin-14671.zip'...
Traceback (most recent call last):
  File "C:\Program Files (x86)\VisualSVN Server\bin\hot-backup.py", line 319, in
 <module>
    os.path.walk(backup_subdir, add_to_zip, (zp, backup_dir))
  File "C:\Python26\lib\ntpath.py", line 262, in walk
    walk(name, func, arg)
  File "C:\Python26\lib\ntpath.py", line 262, in walk
    walk(name, func, arg)
  File "C:\Python26\lib\ntpath.py", line 262, in walk
    walk(name, func, arg)
  File "C:\Python26\lib\ntpath.py", line 258, in walk
    func(arg, top, names)
  File "C:\Program Files (x86)\VisualSVN Server\bin\hot-backup.py", line 314, in
 add_to_zip
    zp.write(path, path[len(root):])
  File "C:\Python26\lib\zipfile.py", line 1024, in write
    self._writecheck(zinfo)
  File "C:\Python26\lib\zipfile.py", line 992, in _writecheck
    raise LargeZipFile("Zipfile size would require ZIP64 extensions")
zipfile.LargeZipFile: Zipfile size would require ZIP64 extensions

I can make it work by passing an extra parameter to the ZipFile constructor to enable ZIP64 mode -- is turning on ZIP64 something that could be made an option in hot-backup? Google turns up a few scattered reports of this problem, so I can't be the only one trying to zip up large repository backups.

thanks

donald

Donald Gordon
Operations Developer, Xero

donald.gordon_at_xero.com | Telephone +64 4 819 4872 | Fax +64 4 819 4801

Level 1, Old Bank, 98 Customhouse Quay, PO Box 24 537,
  6142, New Zealand

http://www.xero.com/
Received on 2010-06-15 05:50:54 CEST

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.