Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar -xvf on AIX 4.3.3.0 1

Status
Not open for further replies.

TurtleOp

IS-IT--Management
Jul 4, 2008
22
US
I am on a old AIX 4.3.3.0 trying to restore a backup on tape.
The device /dev/rmt1 exist end I succeed to execute the following commend with correct result:
tar -tvf /dev/rmt1
I obtained the contain of the tape backup. It take approx. 2 hours.
But when I try to make any restore, nothing happened, no message, nothing.
Ex. of commmand I've tried:
tar -xvf /dev/rmt1 ./oradata01/DBNAME/dbf/prodtai.dbf
tar -xvf /dev/rmt1 './oradata01/DBNAME/dbf/prodtai.dbf'
tar -xvf /dev/rmt1
tar - xvvf ./oradata01/DBNAME/dbf/prodtai.dbf

No way.. and I do not know if tar generate some log somewhere ...
Any ideas Welcome!

TurtleOp
 
Not familiar with the AIX differences but on SCO you don't get any messages if what you attempt to extract doesn't match what is on the tape. It only shows successful extracts.

You could make a listing of what is on the tape so you can be sure you are extracting what is stored on it. Try it as tar -tvf /dev/rmt1 > /tmp/tapefiles.

What happens with tar -tvf /dev/mt1 ?

You generally can abort the long process by popping the tape when you get the info you need.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
Hi Ed! First of all thank you for your fast reply!

That's the "funny" think, I succeed to make a listing of what is on the tape using the cammand: tar -tvf /dev/rmt1

But when I try to restore .. nothing.

TurtleOp,
 
I had suggested the dump to /tmp so you would have a total listing stored rather than having to list it via tar each time you wanted to know the contents.

tar is persnickity (best word I know to describe it) in how it requires input commands.

To get familiar with it I suggest (if you have a blank tape) that you do something like tar -cvf /dev/rmt1 /etc so you can see how it looks and works under conditions you know.

The ./ in front of the files is significant, just don't remember the causes and how it relates to creating and extracting. You may have help in manual pages, assuming you have them. Try "man tar" and see if something comes up. Everybody ought to know how tar works, but after probably 10 years of using a "super tar" I've forgotten most of the details.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
:) Thank you for those interesting ways, Ed!
I will give a try with a new tape and re-read the f.. manual ;)

TurtleOp,
 
And to get help from people who are familiar with the OS and the specific commands for the version you are using might I suggest that you post in the unix-aix forum, which you can locate through the forum list link in the top left corner of the every page.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top