Restoring the files from the MKSYSB image backup

How do I restore specific files from a mksysb tape


To recover specific files from a backup made with mksysb
$ tctl -f /dev/rmt1 rewind
$ tar xvf /dev/rmt0.1 ./your/file/name

$ tctl -f /dev/rmt1 rewind
$ restore -xvf /dev/rmt0.1 ./your/file/name

Restore the file: restore -x -d -q -s4 -f /dev/rmt0.1
-s4 indicated that we are restoring 4th image on the tape,

Use rmt0.1, means no rewind on close and no retension on open.

If the backup was taken with -i flag, you can use the following command:
restore -x -d -v -q -f /dev/rmt0

If the mksysb backup was taken with file system backup, you can use the following command:
restore -x -v -q -f /dev/rmt0

Restoring A Directory File From mksysb Image
If you want to restore a full directory from the mksysb archive on /dev/rmt0. Here you have to specify the directory name instead of a single file:
Rewind The tape: tctl -f /dev/rmt1 rewind

Restore the file: restore -x -d -s4 -f /dev/rmt0.1

if the backup was taken with -i option then it will be:
restore -x -d -v -q -f /dev/rmt0

If the backup was taken with filesystem backup option then it will be:
restore -x -v -q -f /dev/rmt0




Number of Hits :

No comments:

Post a Comment

ADD this Info

Bookmark and Share