Solved

restoring from 2nd volume of a tape backup on AIX 4.3.3

Posted on 2001-08-21
9
398 Views
Last Modified: 2010-04-21
My backups will use 2 tapes/volumes.  I use the backup command to backup the system.  Now if I just want to view or restore something from the 2nd volume how can I do this using the restore command.  I basically want to skip the first volume which I can't seem to avoid.  Any examples or suggestions would be helpful.  I am on AIX 4.3.3.

Thanks!
0
Comment
Question by:mmssi
9 Comments
 
LVL 6

Expert Comment

by:bira
ID: 6410868

 restore -X 2 -vf/dev/rmt0
0
 
LVL 6

Expert Comment

by:bira
ID: 6410886
-X VolumeNumber Begins restoring from the specified volume of a multiple-volume,
file-name backup. Once started, the restore command behavior is the
same as with the -x flag. The -X flag applies to file-name archives
only.
0
 

Author Comment

by:mmssi
ID: 6411181
if I use restore -X 2 -tvf/dev/rmt0  then can I just VIEW the files on that backup and NOT restore them?


0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 6

Expert Comment

by:bira
ID: 6411203
No
  The flags -T and -X are excludent.
0
 
LVL 6

Expert Comment

by:bira
ID: 6411296
What happens when you place the second volume in the unit
and run

      restore -Tvf/dev/rmt0  

                             ?

                                   
0
 

Author Comment

by:mmssi
ID: 6411314
restore -Tvf/dev/rmt0 will ask for the first volume even if the second volume is in the tape drive.
0
 
LVL 6

Accepted Solution

by:
bira earned 50 total points
ID: 6411368
That happens because there is an index in the first tape
with the contents of the entire backup.

  So, as the flags -X  and -T are excludend, you will not
get the list from the second tape.

  Otherwise you can restore from any volume with -X
without placing the previous tapes.

        Regards

 

 
0
 
LVL 20

Expert Comment

by:tfewster
ID: 7774776
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- Answered by bira

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster (I don't work here, I'm just an Expert :-)
0
 

Expert Comment

by:SpideyMod
ID: 7864334
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question