mksysb restore - Aix

This is a discussion on mksysb restore - Aix ; Hi All, I am creating a nightly mksysb image (mksysb -ie /dir/hostname.mksysb) How can I restore a particular file such as /var/adm/messages into a particular location? TIA...

+ Reply to Thread
Results 1 to 3 of 3

Thread: mksysb restore

  1. mksysb restore

    Hi All,

    I am creating a nightly mksysb image (mksysb -ie /dir/hostname.mksysb)

    How can I restore a particular file such as /var/adm/messages into a
    particular location?


    TIA


  2. Re: mksysb restore

    1. use tctl command to position mksysb tape at the beginning of fourth
    image.

    2. use following example from AIX Infocenter:
    -----------------------------
    # To restore a specific file, type:

    restore -xvqf myhome.bkup system.data

    This command extracts the file system.data into the current directory
    from the archive myhome.bkup. The archive in this example is in the
    current directory. File and directory names must be specified as they
    are displayed when using the -T flag. The -v flag displays additional
    information during the extraction. This example applies to both
    file-name and file-system archives.
    -----------------------------

    Of course, substitute myhome.bkup with /dev/rmt0 (or similiar, if you
    have multiple such devices configured).


  3. Re: mksysb restore

    Mag wrote:
    M> Hi All,
    M>
    M> I am creating a nightly mksysb image (mksysb -ie /dir/hostname.mksysb)
    M>
    M> How can I restore a particular file such as /var/adm/messages into a
    M> particular location?
    M>
    M>
    M> TIA
    M>

    /usr/bin/restorevgfiles -f /dev/rmt0 -d /particular/location ./var/adm/messages

    assuming the image is on rmt0.

    --
    "... I shook my family tree, and a bunch of NUTS fell out ..."

+ Reply to Thread