Automatically Backup VIOS Configuration Changes
Automatically Backup VIOS Configuration Changes
This entry will check for any configuration changes and generate a new backup if
necessary. Here's an example from my VIOS, running 2.2.5.10.
$ ioslevel
2.2.5.10
I create a new virtual optical device, which should trigger a new backup the next
time the autoviosbr script runs (once per hour). Prior to creating the device,
viosbr shows the autobackup status as Complete (no changes). I ensure that
autobackup is configured by stopping and starting it with the viosbr command.
vtopt13 Available
Immediately after the vtopt device is created, the autobackup status displays as
Pending (something has changed but has not yet been backed up).
$ r oem
oem_setup_env
# cd /home/padmin/cfgbackups
# ls -tlr
total 72
On the hour, the autoviosbr script runs, notices that the configuration has changed
and generates a new viosbr backup file. The viosbr autobackup status changes to
Complete.
# ls -ltr
total 88
# cp /home/padmin/cfgbackups/autoviosbr_s824vio2.tar.gz /tmp/cg/
# cd /tmp/cg
# gzip -d autoviosbr_s824vio2.tar.gz
# ls -ltr
total 888
The autoviosbr file contains virtual device configuration information. In this file
I can confirm that the configuration of my new virtual optical device (vtopt13) has
been backed up.
# vi autoviosbr_s824vio2
If you want to force a backup to run, before the next hour, manually run the
following as root (oem_setup_env):
$ oem_setup_env
# /usr/ios/sbin/autoviosbr -start