LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2009, 03:17 PM   #1
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Splitting ZIP file on the fly


I need to create a ZIP archive that will easily be larger than 10G in size. There is a limit to the size a ZIP file can be (I believe 4G). I don't know if this means per file if the archive is split, or the total archive size.

I will need to split the file into parts of about 4G each, as I will need to burn them to DVD.

What are my options?
 
Old 02-24-2009, 03:25 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 37
There is no real limit to zip but the file system you wish to put the file on.

You can use tar to split files:

You should specify the volume size (tape length) in kilo-bytes:
tar --tape-length=1390 --multi-volume -create --file=//a/foo.tar <files>

or shorter:
tar -L 1390 -Mcf //a/foo.tar <files>

1390 kbytes is the largest size of a file you can fit on a standard
FAT formatted HD floppy (although the file will appear to be 1420 kb).
 
Old 02-25-2009, 04:44 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
I say use 7zip/p7zip to make volumes.

Code:
7z a -v4g test.zip files
This tells it to add files to test.zip and generate 4 GB volumes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tips from an RHCE: Splitting tar archives on the fly LXer Syndicated Linux News 0 10-24-2007 09:20 PM
File splitting script stephencassidy Programming 3 03-23-2007 12:09 PM
Splitting a File Slayer097 Linux - Newbie 4 02-22-2005 07:15 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
file splitting???? spideywebsling Linux - General 4 07-19-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration