Is there a way to split a tar or gzipped tar file into several files, to be rejoined later on another hard drive? For example, given file.tgz which is 10 MB in size, is there a way I could divide it into 10 files, each of which fits on a 1.44 MB diskette (called file-1 ...file-10), to be rejoined later into the original 10 MB file? Thanks dj tuchler
Dennis Tuchler wrote:
Is there a way to split a tar or gzipped tar file into several files, to be rejoined later on another hard drive? For example, given file.tgz which is 10 MB in size, is there a way I could divide it into 10 files, each of which fits on a 1.44 MB diskette (called file-1 ...file-10), to be rejoined later into the original 10 MB file?
Thanks
dj tuchler
man split You can split it in a lot of file For join, use cat example for join: part01 part02 part03 Original name: xyz.zip cat part01 > xyz.zip cat part02 >> xyz.zip cat part03 >> xyz.zip -- www.geekcode.com -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/cc/e/it d++ s+:+ a-- C++$ UL+++$ E++ W+++$ w--- O---- M V- PS PE+++ Y+ PGP- t+ 5 X++ R tv+ b++ DI-- D+ G e++$ h! r++ y++ ------END GEEK CODE BLOCK------ - A veces creo que hay vida en otros planetas, y a veces creo que no. En cualquiera de los dos casos, la conclusi�n es asombrosa (Carl Sagan) -----------------------------------------------------------------
Dennis Tuchler wrote:
Is there a way to split a tar or gzipped tar file into several files, to be rejoined later on another hard drive? For example, given file.tgz which is 10 MB in size, is there a way I could divide it into 10 files, each of which fits on a 1.44 MB diskette (called file-1 ...file-10), to be rejoined later into the original 10 MB file?
I think # tar -L1440 -cvf /dev/fd0 /dev/fd0 archive works. You can't compress at the same time, but there's no reason why archive can't itself be a tar.gz or tar.bz2 file. This is raw writing to the floppy; so you get all 1440 Kb but the only way to recover is to use # tar -L1440 -xvf /dev/fd0 and make sure you put the disks back in the right order. JDL -- Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Dennis Tuchler <dtuchler@earthlink.net> writes:
Is there a way to split a tar or gzipped tar file into several files, to be rejoined later on another hard drive?
An example: split -b 1440k file.tar.gz file_ cat file_* > newfile.tar.gz -- Alexandr.Malusek@imv.liu.se
participants (4)
-
Alexandr Malusek
-
Dennis Tuchler
-
Hipolito A. Gonzalez M.
-
John Lamb