Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-02-2003, 08:06 PM   #1
LQ Newbie
Registered: Mar 2003
Location: qld, Australia
Posts: 5

Rep: Reputation: 0
Tape backup issues


OS= RedHat 7.3

Problem as follows:

I'm trying to do multiple backups to tape device...

1st. I create a file called tape.header which contains the file markers on the tape for easy navigation. I then write tape.header :

mt -f /dev/st0 rewind
tar -cvf /dev/nst0 /tmp/tape.header

2nd. I then perform a tar backup. eg.

tar -cvf /dev/nst0 /usr /etc

Now the problem is on other OS's (eg. SCO OpenServer, AIX, RH 6.1) I can do the following once the tape is rewound:

tar -tvf /dev/nst0 <--- that will then display tape.header file
tar -tvf /dev/nst0 <--- that will then list files from /usr /etc

But with current RH versions the above does not work! after the first tar command I must then do "mt -f /dev/nst0 fsf" otherwise the next tar command fails and an extra tar command needs to be run.. It's almost like there is a black space after each tape write. FYI same thing happens if using cpio or something like PAX.

This is an issue because we are trying to port our software from UNIX (AIX, SUNOS, HPUX etc) to newer Linux versions and this one thing is driving us crazy.. Just so your aware, putting the "mt -f /dev/nst0 fsf" command is really a last resort.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tape backup how to x2000koh Linux - General 4 01-25-2010 03:04 AM
Tape backup cbarbry Linux - Newbie 2 07-14-2004 06:07 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 10:42 PM
Tape Backup Falieson Linux - Hardware 4 06-12-2003 09:07 PM
Which Tape backup? biggiefatts Linux - Hardware 4 02-19-2003 04:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration