Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create split zip files from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create split zip files from the command line
Authored by: penguintopia on Mar 21, '13 04:38:18AM

Why not create the zip file and then use the split command to make your chunks? Those files can simply be concatenated and unzipped.



[ Reply to This | # ]
Create split zip files from the command line
Authored by: Strod on Mar 21, '13 10:42:10AM
Exactly. The way to do this, after you create TheBigZipFile.zip (note that I am taking the size of each segment from the article, 4482 MB):
split -b 4482m TheBigZipFile.zip TheSegment
That will leave you with several files called TheSegmentaa, TheSegmentab, etc. To concatenate on a Mac:
cat TheSegment* > MacBigZipFile.zip
And on the DOS prompt of a Windows machine (oh, the horror!):
type TheSegment* > WinBigZipFile.zip
You can verify that all three big files are identical my getting the MD5 checksum or similar method (not sure how to do that on Windows without extra tools, though).

[ Reply to This | # ]
One word: Mom
Authored by: lullabud on Mar 21, '13 09:23:42PM

You and I could definitely do that, and that is certainly the way I would've gone if I wanted to split up a tgz file. My momů not so much, especially not on Windows. If she were using a Mac I probably would've gone with a sparse bundle DMG file.

As I mentioned in the OP, the man page for zip explains the difference between that approach and using the split zip method.

Split zip is just one alternative to this problem, and it happens to have built in support on both Windows and OS X.

Edited on Mar 21, '13 09:28:07PM by lullabud



[ Reply to This | # ]