Archive::Zip - how to create huge zip files ?

M

MoshiachNow

Hi,
My code is :

my $zip = Archive::Zip->new();
$zip->addFile("Updates.txt");
$zip->writeToFileNamed($NAME1);

However - If I'm zipping huge (20GB) database files into the zip - how
and when should I write (writeToFileNamed) this zip file?I beleive
Windows will not be able to keep this huge info in the memory...
Thanks
 
A

anno4000

MoshiachNow said:
Hi,
My code is :

my $zip = Archive::Zip->new();
$zip->addFile("Updates.txt");
$zip->writeToFileNamed($NAME1);

However - If I'm zipping huge (20GB) database files into the zip - how
and when should I write (writeToFileNamed) this zip file?I beleive
Windows will not be able to keep this huge info in the memory...

Read the documentation of the module you are using. The section
"OBJECT MODEL" explains that the object does *not* (necessarily)
hold the data.

Anno
 
I

Ilya Zakharevich

[A complimentary Cc of this posting was sent to
MoshiachNow
However - If I'm zipping huge (20GB) database files into the zip

Zip directory info has only 4byte-long integers. No go.

Hope this helps,
Ilya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top