Reputation: 893
I am trying to compress a folder and create a zip file. The size of the folder is nearly 75 GB and the total disk space is 100 GB. So,when I am trying to use common zipping utilities like 7z or Peazip,they are running out of space.
Is there a way/software which deletes the original file as soon as it is archived - so that I don't run out of space.
I can write a bit of perl code using Archive::zip but not sure if that is the best method.
Please advice.
Upvotes: 1
Views: 457
Reputation: 50127
I would divide the input into multiple chunks, each one 10 GB or so, and compress them individually. Most compression tools will anyway not benefit from a very large input.
Upvotes: 0
Reputation: 1304
You can repeatedly use the 'move' command of the ZIP (switch -m) to add individual files to the existing zip archive.
zip -m /path/to/zipfile.zip file1 file2 file3
Upvotes: 1