You can back up a WPAR image via an LPAR or an AIX server backup.
Procedure
-
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.
-
Configure the content path for the subclient WPAR_database as /tmp/wpardata/database.
-
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.
-
Associate the script as a pre-scan script on the subclient WPAR_database.
-
Run or schedule a backup.