Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> multi volume tar bundles?
embirath
post Mar 10 2006, 05:51 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 10-March 06
Member No.: 6,144



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
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
michaelk
post Mar 11 2006, 11:47 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



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/splittin...arge_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.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 06:22 PM