Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
In a previous thread I asked how to create a tar archive that would allow me to limit the file size and break up automatically into incremental archives.
My question is this. How with the existing file size limit can I extract the contents of one of these archives back to the file system. I can't reassemble the files onto the file system because they will break the 4GB limit. Is there a way that I can pipe cat through tar? Are their other alternatives still?
I don't think that's possible. Once you use split you have to join the files back together with cat before you can do anything else.
The real solution is to stop taring up your files to a FAT32 filesystem with its 4GB single file size limit. You shouldn't have this problem on any native linux filesystem.
My question is this. How with the existing file size limit can I extract the contents of one of these archives back to the file system. I can't reassemble the files onto the file system because they will break the 4GB limit. Is there a way that I can pipe cat through tar? Are their other alternatives still?
Try
# cat *.bz2* | (cd path-to-destination; tar jxv)
That should send a byte-stream through stdin to tar in the destination directory of your choice.
dar allows you to split archive files and retrieve files from the archive without having to assemble them into one huge archive file. It will even pause while you eject media and mount the next disk in a series.
Dar is a good replacement for tar if you are making archives for storing on removable media, although I think it's not suitable for tape backups (which is tar's job).
In the future, you might want to check 7z, which has been ported to a lot of architectures and can split the archives in volumes without needing external tools. With the default options it also provides a better compression ration and a lesser cpu usage, at least that's my perception (I am not really a fan of benchmarks).
I recently used the above command to backup about 1TB of data into an external HD that was formatted as FAT32 and created a bz2 tar archive and then split it in 2GB chunks. Now that I am trying to access this data I am realizing that the numbering of the chunks goes from 00 to 99, which got me thinking that actually not all of the original data may have been backed up, given the suffix for the split files can contain only 2 digits.
Is there a way to change the format of the suffix to contain more than two digits?
scramble64
You might have already figured this out but AFAIK 100 files is the limit with digits. If the number suffixes was exceeded an error would of been displayed. You can use letters of length N using the -a option.
---------- Post added 01-14-12 at 01:20 PM ----------
scramble64
You might have already figured this out but AFAIK 100 files is the limit with digits. If the number suffixes was exceeded an error would of been displayed. You can use letters of length N using the -a option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.