So I'm trying to dump a mysql database into a zip file by using piping. Compressing it to save disk space and making downloading backups easier.

The weird thing is that this sometimes works, but sometimes gives me an error like:

adding: - s=2484565, actual=2484596
zip error: Internal logic error (incorrect compressed size)


This is an example of a cronjob:

mysqldump -u myusername --password=mypassword campusac_phpbb2 | zip > /home/campusac/campusac_phpbb2_weekly.zip > /dev/null