Monday, August 18, 2008

How to extract an individual file from an AIX mksysb on tape

To extract an individual file from a mksysb on tape:

# restore -s4 -xqvf /dev/rmt0.1 /my/filename


restore -s4 -xqvf /dev/rmt0.1 ./etc/passwd


Anonymous said...

Thanks for this useful hint. I found it via Google.

I would like to add that the dot as the first character of the file specification is CRUCIAL. All files in the mksysb image are stored with file specification starting with the dot.

I used this method to restore a file using an mksysb image file written to an NFS mounted folder instead of a tape drive. It works fine using the same flags and the mksysb file specification instead of the tape device specification.

Anonymous said...

Sorry, I posted just before a wrong statement: for restore from an mksysb file the -s4 flag has to be omitted. The other flags -xqvf have to be kept.

lamp said...

It would be great to share a bit more on this matter. I’m glad I come across your site really informative post. Thanks for sharing this material.

Leslie Lim said...

It is great to have the opportunity to read a good quality article with useful information on topics that plenty are interested on.