solarian Posted February 17, 2006 Report Share Posted February 17, 2006 (edited) Hello! How do I create a multipart tar.gz archive? I have a file at 1gb and I'd like to archive it as two 500mb part files. I looked at tar --help, but didn't notice anything like what I need. Or maybe I just missed it... :unsure: p.s. Maybe it's possible to make it as multipart rar or zip archive instead? Because I plan to maybe give those files over to a guy with Windows installed, so it would be nice if those files could be unarchived in Windows Thanks! Edited February 17, 2006 by solarian Quote Link to comment Share on other sites More sharing options...
Qchem Posted February 17, 2006 Report Share Posted February 17, 2006 Try looking at the k flag, I remember using that on old-school unix. EDIT - it appears this does something different in GNU tar - sorry! You'll probably be better off piping it through split. Quote Link to comment Share on other sites More sharing options...
solarian Posted February 17, 2006 Author Report Share Posted February 17, 2006 -K, --starting-file=MEMBER-NAME begin at member MEMBER-NAME in the archive -k, --keep-old-files don't replace existing files when extracting --keep-newer-files don't replace existing files that are newer than their archive copies Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted February 17, 2006 Report Share Posted February 17, 2006 Not sure if this helps, but I saw two parameters: -L = tape length (although this could work with disk length value * 1024) -M = multi-volume (create/list/extract multivolume - could be this if referring to disks). This link also seems to think what I found is correct: http://www.cgi-interactive-uk.com/splitting_large_files.html so it requires using both parameters in conjunction with each other. Quote Link to comment Share on other sites More sharing options...
Qchem Posted February 17, 2006 Report Share Posted February 17, 2006 tar cvzf - * | split -b 512k nameoftar Quote Link to comment Share on other sites More sharing options...
solarian Posted February 17, 2006 Author Report Share Posted February 17, 2006 Thanks for the help! I will sound like a lame sucker now, but in Windows I remember it was a lot easier, you just pointed individual partsize in WinRar through a nice gui. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.