Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm on mac osx.

1. Is there any tool to compress a folder into multiple zip files ?

2. Is there any tool to split a compressed zip file into smaller zip files (to open individually later)?

share|improve this question
add comment

2 Answers

up vote 16 down vote accepted

Use the -s switch on the zip command in terminal. So if your folder was called FolderName

zip -r -s 64 archive.zip FolderName/

64 is the size of the split (in this case 64Mb).

Use -s to set the split size and create a split archive.  
The size is  given  as  a  number  followed optionally  by  one  
of  k (kB), m (MB), g (GB), or t (TB) (the default is m). [1]

Use zipsplit to split a zip file in to multiple smaller zipfiles. Use the -n switch to set the size of the splits.

[1] http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/zip.1.html

share|improve this answer
    
@RobZolkos I've done what you suggest and I have a small archive.zip (7mb) and the segments (64mb each). However, I cannot unzip the content, I'm running unzip unix archive.zip but I get "bad zipfile offset (lseek)". Furthermore, I need to extract them in Windows environment as well, and there I only have Windows 7 extractor I guess. –  Patrick Apr 19 '11 at 10:08
    
you just need to run unzip archive.zip I'm just checking windows now. –  RobZolkos Apr 19 '11 at 10:46
    
@RobZolkos I've already tried and I added to the question the error I get. –  Patrick Apr 19 '11 at 10:49
    
I just tested it on a folder and it worked fine. Both zipping and unzipping. Make sure to unzip in a different folder than the original source. On Windows it doesn't unzip. However a freeware unzip program 7Zip 7-zip.org can unzip them without a problem. –  RobZolkos Apr 19 '11 at 11:05
    
@RobZolkos I get "unsupported compression method" error, do you think the issue is with at extraction step or compression step? –  Patrick Apr 19 '11 at 12:32
show 2 more comments

I just found Keka, maybe it can interest you, and it's free.

share|improve this answer
2  
Answers on Ask Different need to be more than just a link. It's okay to include a link, but please summarize or excerpt it in the answer. The idea is to make the answer stand alone. –  Daniel Lawson Jul 2 '12 at 15:41
add comment

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

protected by Daniel Lawson Jul 2 '12 at 15:42

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.