Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm searching for a solution to take a big directory and make a multiarchive zip backup with each zipfile being 1gig. I've looked at zipsplit but appearently you can not actually split files, ie. one of the files in that directory is 5gig, so zipsplit can't handle it because it's bigger then the target size of the zipfile. I like to make zipfiles to make it easier for windows users to access the files.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I do not use zip but tar+gzip. What I do is

tar czf - /some/dir | split -b 1G

This will create files xaa xab etc.. (you can change the prefix. Check the man pages)

To restore simply cat the files together, i.e.

cat xaa xab ... | tar xzf - 

It looks like you can do that with zip to, using a - for filename, something like (untested)

zip - /some/dir | split ...
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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