Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ General Discussion _ multi volume tar bundles?

Posted by: embirath Mar 10 2006, 05:51 PM

Hi there

I regularly have to create tar-bundles, each of which can only be 30Mb or smaller. The total size of all my files may be 90-150Mb.

If I wanted to create a single tarbundle of all the files, it'd be easy:
> tar cvf mytar.tar *

Instead I have to type in:
> tar cvf bundle1.tar file1 file2...file21
> tar cvf bundle2.tar file22 file23...
> tar cvf bundle3.tar ...
.
.
ie, I have to type in each file name separately. This is a pain. Since I do this regularly, I would LOVE to find a way to create these tarbundles automatically, where each tar bundle is only 30Mb or smaller. According to the "tar" manual, there is something called "mulit-volume tar bundle". This sounds like it might be what I'm looking for?? But I can't figure out how to use this option.

Does anyone have any ideas?

Thanks!
Emma

Posted by: michaelk Mar 11 2006, 11:47 AM

Not sure why tar cvf mytar.tar * does not work.

You can use multi-volume but I do not think it is automatic.
http://www.cgi-interactive-uk.com/splitting_large_files.html

Another method that may work would be to create one big tar file and then use the split command to divide into 30mb bundles. You would then use the cat command to reconstruct the entire file.

Posted by: michaelk Mar 11 2006, 09:58 PM

Another suggestion would to try dar.
http://dar.linux.free.fr/

Posted by: embirath Mar 13 2006, 06:07 PM

Thank you for your help! smile.gif

The command itself: "tar cvf mytar.tar * " does work, but I then have to upload the tar-bundles to a website which can only handle 30Mb at a time... This is why I have to split them up. Then, the "untarring" is done automatically, so I don't know if "dar" would work. (Don't know if this website would recognize "dar-bundles".) But the article you sent me helps a great deal. I should be able to get it to work now.

Thanks!
Emma

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)