Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


LinkBack Search this Thread
Old 04-12-2006, 10:02 AM   #1
Registered: Mar 2004
Location: MA, USA
Distribution: OpenSuse 10, FC4/5, Mepis
Posts: 95

Rep: Reputation: 15
newbie tar/tape backup questions

Im having some issues backing up tar to a tape drive, hoping someone can give me some info on seeing status of things. I have read a few howto's and man pages but can't find answers to the questinos below. if anyone has a link to certain docs that answer my ?'s id be very grateful. heres the skinny:

I have setup nonprofit with FC4 , a sony ait (ide) tape drive (40/104gb). i can do small backups/restores/compares just fine to /dev/st0

Once we started backing up all of the organizations (only about 20gb) Istarted getting inconsistant results.
My failures seem to be on the compare: certain files fail compare randonly, no one had the files open and tar is still running in the morning , so it looks like its actually getting hung up and not just failing the compare and moving on. Ive tried removing the files in question on occasion it still fails on random files. Last night it went fine however, after changing my scripts slightly. but I still had a couple of questions i cannot find the answer to and im hoping theyre easy:

from what ive read accessing the device as st0 autorewinds it after every access, is this true?

what is the default behavior of tar as to tape overwriting? I want the job to overwrite the tape each night, do i have to use mt to erase it prior or not? the backup command im using is "tar cf /dev/st0 /home/netshare"

I have tried the compression switches but had issues restoring, so for now its disabled. will this increase the backup speed (its taking many more hours than the same amount on a windows system with backup exec).

how do i know/set the tape capacity in linux with tar?

where/how to set compression, as in windows it appears a default setting , we always get more than the uncompressed capacity. does piping through gzip give similiar results, and is that the best approach to utilize compression?

I have the output of the tar df compare to a text file to see backup compare status, but since it occasionally fails at this stage, is there a more detailed log i can see? I see nothing in /var/log/messages, and the output of the file doesnt give much info either except what files failed (and the fact that tar is still active task in the am). last night i used tar dvf, doesnt tell me much more when it fails.

so, lotsa ?'s (sorry!). is there any docs that cover these issues? surely there are and ive had bad luck not finding them. thanks for any help!
Old 04-12-2006, 10:24 AM   #2
Registered: Jul 2002
Location: USA
Distribution: Slackware 10.2
Posts: 53

Rep: Reputation: 15
I do not have a big tape drive but it does bomb on me some times also. Mainly is when I get close to the size of what I am backing up and the tape just doesn't have much room left on it. I personaly would not do massive backups on tape because tape does stretch and that would be a good guess for me to start with. I always erase before I do a backup. When I do backups now I just do certain directory's not the whole system.
tar -cjvjpf /dev/st0 /boot /root /etc /usr .... will copy the four directory's and do it in a bzip2 copy, to your tape. I do not see any difference zipping it or not on backups. Rotate your tapes don't just dump on one tape all the time. I also use xdiskusage to see how big my directory's are so I can judge the backup I am doing.
Good Luck,
Old 04-12-2006, 06:01 PM   #3
Registered: Mar 2004
Location: MA, USA
Distribution: OpenSuse 10, FC4/5, Mepis
Posts: 95

Original Poster
Rep: Reputation: 15
I will do some experiments with compression, thanks for responding!
Old 04-24-2006, 10:07 PM   #4
Registered: Mar 2004
Location: MA, USA
Distribution: OpenSuse 10, FC4/5, Mepis
Posts: 95

Original Poster
Rep: Reputation: 15
well, a little update:
I continued to have issue with tar getting hung up on various files. I ried cpio and its been running great once i ironed out syntax and where i need to be (folder location) to run restores/backups. i also found that using --buffer-size=2048 _tremendously_ improved the backup speed.
the first backup took something like 12+ hrs for 30gb. with that buffer change its only about 3 hrs, pretty normal. thanks for the help and suggestions!


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
Doin a weekly tape backup - multiple questions - VERY important - Please help WorldBuilder Linux - General 10 04-25-2003 03:12 PM
Tape backup help WorldBuilder Linux - Software 1 03-27-2003 01:26 PM
Which Tape backup? biggiefatts Linux - Hardware 4 02-19-2003 03:21 PM
2 questions(Re: backup to scsi tape drive) ascii2k Linux - General 5 07-16-2001 05:47 PM

All times are GMT -5. The time now is 01:31 PM.

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