LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 03-24-2007, 04:29 PM   #1
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
tar file twice? put to tape? Gzip?


So in doing my backups, I tar & gzip up a directory locally, then move it to a staging drive mounted via NFS.

Now, once a week, I write them to tape. So, I end up taking a .tar.gz archive and tar'ing it again to the tape. Is this bad? Is there any other way that's considered better?

The total backup is ~7Gb, so transferring the un-gzipped files over the network (NFS) is a bit of a pain...
 
Old 03-25-2007, 10:17 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
It's hard to get a complete picture of what you are doing. If you have a .tar.gz file, why would you need to tar it again to write it to tape.

Is the transfer to tape done at a remote computer?
Where is the "staging drive"?
 
Old 03-25-2007, 12:07 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
The staging drive is on a dedicated NFS server. The staging drive has, at the moment, six directories, one for each host, each with 14 days' worth of full nightly backups. Each nights' backup is in its own directory, and contains files like etc.tar.gz home.tar.gz srv.tar.gz sqldump.tar.gz, etc.

The tape drive is on another machine. The other machiene handles the tape procedure by mounting the NFS share, and running a script that at the moment tar's all of the latest backup directories and outputs them to the tape drive.
 
Old 03-25-2007, 03:01 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Question: Have you tried extracting such a tar.tar sauce (sorry, the devil made me say it)?
a. if you can restore files, no harm done (thorough test required because re-compressing a compressed file may have unexpected results).
b. if you can't restore files, your backups are useless unless you can find a way to extract them.

If there are problems with re-tarred tar archives, try modifying the script to just write the files to tape, rather than tar a bunch of files which are already in tar archives.

Keep in mind, in a tar archive, if any part of the archive is corrupt, you risk the entire archive unless you have a tool which can repair or extract files from a corrupt archive.

It might be in your best interest to investigate DAR, which can make compressed archives, but each file in the archive is seperate from the others. If one is corrupt, you only loose the one; not the entire archive.
 
Old 03-25-2007, 04:01 PM   #5
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
I don't want to sound ignorant, but this is my first time using a tape drive. How can I write the files to tape without using an archive tool like tar or cpio?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid gzip magic (tar.gz file) hkhiroya Debian 2 05-23-2006 07:35 AM
retrieving tape backup after using cpio and gzip jazbinschek Linux - Newbie 8 12-29-2005 11:31 PM
Using Tar/Star to copy a compressed file from tape geokker Linux - Software 1 09-09-2005 08:32 AM
How to unzip and untar a xxx.tar.gzip.part file> linuxharsha Linux - Software 8 02-15-2004 05:27 AM
How to untar and unzip .tar.gzip.part file? linuxharsha Linux - Software 2 02-14-2004 11:37 AM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration