AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Restore a specific file from mksysb Tape of AIX

    Posted Sun August 23, 2009 06:48 AM

    Originally posted by: alydieng


    Can anyone help me please. Is it possible to retore a specific file from a mksysb. I have some scripts who are on old mksysb and I want restore it on my new system newly installed.
    #AIX-Forum


  • 2.  Re: Restore a specific file from mksysb Tape of AIX

    Posted Mon August 24, 2009 02:58 AM

    Originally posted by: ostost


    You can use the restore command.

    restore -xqvf <mksysb_file_name> <file_to_restore>

    For example the command

    restore -xqvf myserver.mksysb ./usr/local/function/banner

    restores file ./usr/local/function/banner from the mksysbfile myserver.mksysb. Make sure you specify the fullpath name of the file you want to restore. You can use restore -Tqvf <mksysb_file_name> to list the files in the mksysb.
    #AIX-Forum


  • 3.  Re: Restore a specific file from mksysb Tape of AIX

    Posted Tue August 25, 2009 01:41 PM

    Originally posted by: alethad


    The mksysb tape has 4 sections. You'll need to skip to the 4th section to get to the files.
    So your command will be to read it restore -s4 -Tvqdf /dev/rmtX.1
    Then to actually restore it use *restore -s4 -xvqdf /dev/rmtX.1

    You may also need to rewind it in which case you should issue the command tctl -f /dev/rmtX rewind

    Hope that helps.
    #AIX-Forum