We have a project page which consists of users' files, multimedia stuff, etc and we want to allow the user to export all this out into a single zip file. We're using unix and mysql to store all of these currently and our primary goal is to minimize load/performance time from all the processing and compiling all the files into a zip file.
My idea was to cache the zip file into a temp dir and keep all the CRC checksum for each files in the zip into a separate text file. Each time the user tries to do an export I will first check through each file's CRC and compare it to the list before adding or removing files from the zip file.
But my other concern is also the space that the zip file will be occupying as we might have a lot of users.
IMHO, this is probably the dumbest way possible to do this, so can any of you guys please suggest a better way to deal with this problem?
thanks ~codeNoobian