Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-09-2003, 08:30 PM
|
#1
|
Member
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109
Rep:
|
Archiving
I have a large MP3 collection that I would like to back up to tape. I just bought a tape drive and I'm looking for an easy way to back up my library. I'd like to span the tape and compress the data. Its a Seagate STT20000A (TR-5 tapes).
I've poked through a couple of programs like Taper, Mondo, and Archeia, but they seem to be for system backups and I had a tough time getting them working.
Any ideas? A GUI would be nice, but not really mandatory.
I'm running Redhat 7.3 on a dual proc server.
tks
Last edited by zymurgist; 02-09-2003 at 08:32 PM.
|
|
|
02-10-2003, 01:32 AM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127
Rep:
|
ark - gui based
CLI:
man tar
man gzip
(u'll tar it first then u'll gzip to compress).
hth.
|
|
|
02-10-2003, 08:00 AM
|
#3
|
Member
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109
Original Poster
Rep:
|
Problem is that I don't have the space to tar them to first and then zip them. I need to stream them right to my tapes and span them across muliple tapes. I know tar -M can span, but it won't compress and span. I'll take a look at ark, but will it do what I need?
|
|
|
02-10-2003, 10:53 AM
|
#4
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
Have you tried this:
Code:
tar cvf - <file list> | gzip -vc9 > archive.tar.gz
or you could stream it from gzip onto your tape, depending on how things are set up...
|
|
|
02-10-2003, 01:20 PM
|
#5
|
Member
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109
Original Poster
Rep:
|
Quote:
Originally posted by Dark_Helmet
Have you tried this:
Code:
tar cvf - <file list> | gzip -vc9 > archive.tar.gz
or you could stream it from gzip onto your tape, depending on how things are set up...
|
That would work on a single tape, as would "tar cvfz", but I need to span it across a few tapes.
Recap - I need to compress AND span about 50G of data to a few tapes (tape drive is /dev/ht0). I don't need a GUI, but it would be nice.
Any other tricks?
|
|
|
02-10-2003, 01:50 PM
|
#6
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
My mistake. You said you didn't have the space to tar them and then zip them, and I focused on that. I thought sending it through gzip on-the-fly would compress it enough for you so it could reside on the drive before going to tape. If so, then you could use the split command before sending it to each tape.
The only other thing I could think of would be to write a shell script to break the library up into more manageable pieces. In other words, many small archives rather than a single gargantuan one.
Last edited by Dark_Helmet; 02-10-2003 at 02:12 PM.
|
|
|
02-10-2003, 02:12 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
another 2Cents thrown in .... what compression do
you hope to gain zipping MP3? ;)
It's a highly optimized compression method in the
first place, and I doubt you'd gain more than 5%
anyway ...
Cheers,
Tink
|
|
|
02-10-2003, 02:39 PM
|
#8
|
Member
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109
Original Poster
Rep:
|
Quote:
Originally posted by Tinkster
another 2Cents thrown in .... what compression do
you hope to gain zipping MP3? 
It's a highly optimized compression method in the
first place, and I doubt you'd gain more than 5%
anyway ...
Cheers,
Tink
|
You know, thats a good point. I didn't even think of that. The TR-5 tapes are listed as 10G/20G (10 uncomressed, 20 compressed), so I assumed I would need to compress my files to get the 20G. I guess I'll have to buy more tapes.
|
|
|
02-10-2003, 08:21 PM
|
#9
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally posted by zymurgist
You know, thats a good point. I didn't even think of that. The TR-5 tapes are listed as 10G/20G (10 uncomressed, 20 compressed), so I assumed I would need to compress my files to get the 20G. I guess I'll have to buy more tapes.
|
Now that that's settled ... :)
tar -L 10000000 cvf /dev/tape/ /my/mp3/collection
;)
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 06:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|