Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a simple backup server that rsyncs several network shares and then compresses them into a zip file that is loaded onto tapes.

zip -r /media/1tb/backup/compressed/reports.zip /media/1tb/backup/nightly/reports/

And about half way through i get

adding:
media/1tb/backup/nightly/reports/active/aa010aq/rpts.2009.12.15/aa010aq.datzip 
I/O error: File too large

zip error: Output file write failure (write error on zip file)

This is on a standard ubuntu server.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Which version of zip are you using? You need at least 3.0 to support Zip64 (which is required for creating archives larger than 4GB).

share|improve this answer

How large is the file at the point of the error?

The problem is most likely the filesystem on the drive you are backing up to not supporting files large enough. FAT16 is limited to 2Gb per file, FAT32 is limited to 4Gb. FAT32 is the most common filesystem to be found on external drives unless you reformat explicitly using a different filesystem.

If this is the case then you will need to reformat the drive with a better filesystem (ext3 for example, or NTFS) or change your procedure so that it doesn't generate a single archive that is so big.

share|improve this answer
    
My fstab says its ext2 /dev/sdb1 /media/1tb ext2 defaults 0 0 –  The Digital Ninja Dec 16 '09 at 0:42
    
In that case the limit is most likely to be the compression utility or format. Try different variants of zip utilities, or different formats altogether (I personally use 7zip which has its own format but can create+handle many others including zip) –  David Spillett Dec 16 '09 at 10:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.