You are not logged in.

#1 2021-06-26 21:35:03

Aromatix
Member
Registered: 2019-03-25
Posts: 13

[SOLVED] Use unzip with limited disk space available

I want to unzip a 75GB file with 90GB disk space available in total. I was not able to find a way to extract files out of the archive and delete them directly after, so that I don't reach my disk space limitations. How comes that there is no such option in the unzip program and does anyone know a good way to solve my problem?

Thanks in advance!

Last edited by Aromatix (2021-06-27 09:47:08)


I am here to learn. Feel free to message me about anything that might be interesting to me! Thanks wink

Offline

#2 2021-06-27 06:23:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,525

Re: [SOLVED] Use unzip with limited disk space available

I want to unzip a 75GB file with 90GB disk space available in total.

Do you have any idea about the unzippped size? The compression rate for text is ~ 1:10 …

a way to extract files out of the archive and delete them directly after

I assume you mean "delete them from the archive"? That doesn't necessarily help you because even if the files are compressed individually, "deleting" a file can just mean to remove it from the archives file table.

You can iterate over "unzip -l" and extract the file, then use zip -d to delete it.
But again: unless the zip is -0 compressed, this will probably still get you into disk space issues.
1TB usb drives cost like $25 to $50, so…

Offline

#3 2021-06-27 09:45:59

Aromatix
Member
Registered: 2019-03-25
Posts: 13

Re: [SOLVED] Use unzip with limited disk space available

The contained files are mostly jpg images, the unzipped space will be about 5gb bigger than the archive.

I'll will use the unzip, zip -d hack, still wondering tho that there is no build in functionality for this since it sounds like a common scenario.

Anyways, good suggestion and thanks for your help!


I am here to learn. Feel free to message me about anything that might be interesting to me! Thanks wink

Offline

Board footer

Powered by FluxBB