ITEM: D5412L

Restoring from tape with stacked backups only find last image.


Question:

I am trying to backup multiple filesystems with the backup command
from the command line.  However, when I look at the tape it appears to
be only backing up the last filesystem I specify.  What is wrong?

Response:

You have created a tape with mutiple images on it. In order to access the
images separately, you need to use the -s flag with restore. For example,
if you created the tape with the commands

        \# backup -u2 -f/dev/rmt0.1 /data1
        \# backup -u2 -f/dev/rmt0.1 /data1

The following commands should first list the files on the first
images and then on the second image:

        \# restore -tvf/dev/rmt0.1 -s1
        \# restore -tvf/dev/rmt0.1 -s1

you can also use the -s flag to step directly to a particular image on
the tape.

Using restore with the rmt0.1 device WITHOUT the -s flag seems to
ALWAYS go to the LAST image on the tape. I have not tested this
exhaustively, but the point is you NEED to use the -s flag to
get restore to behave correctly with stacked backup images.


Support Line: Restoring from tape with stacked backups only find last image. ITEM: D5412L
Dated: August 1993 Category: N/A
This HTML file was generated 99/06/24~13:30:56
Comments or suggestions? Contact us