LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

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

Rep: Reputation: 0
Tape backup issues


HI,

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.
 
  


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 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 02:04 AM
Tape backup cbarbry Linux - Newbie 2 07-14-2004 05:07 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
Tape Backup Falieson Linux - Hardware 4 06-12-2003 08:07 PM
Which Tape backup? biggiefatts Linux - Hardware 4 02-19-2003 03:21 PM


All times are GMT -5. The time now is 11:14 PM.

Main Menu
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