Back Up a WPAR Image via an LPAR or an AIX Server Backup

You can back up a WPAR image via an LPAR or an AIX server backup.

Procedure

  1. Create a subclient on an LPAR to back up each WPAR image.

    For example, if your WPAR is named as database, then create a subclient named WPAR_database.

    Note

    You can also use a single subclient to back up all WPAR images.

    The savewpar command is used to back up the WPAR to disk.

    In the example, /tmp/wparbackup is used as the path. You can choose a different path.

  2. Configure the content path for the subclient WPAR_database as /tmp/wpardata/database.

  3. Create a pre-scan script on the LPAR or the AIX server:

    !/usr/bin/bash
    export OUTPUT=/tmp/WPAR_Backup.out
    echo starting wpar backup at 'date' >$OUTPUT
    savewpar -f /tmp/wparbackup/database.backup WPAR_name -e /etc/exclude.WPAR_name
    if[$?!=0];then echo "savewpar failed">>$OUTPUT;exit 1;fi
    exit 0

    where:

    -e specifies the files that should be excluded from the backup.

    database is the WPAR name.

  4. Associate the script as a pre-scan script on the subclient WPAR_database.

  5. Run or schedule a backup.

What to Do Next

Recover WPAR Image from an LPAR or an AIX Server Backup

×

Loading...