Just sharing how we do it.
make sure the HMC and IBM i have ssh shared keys setup for HMCUSER.
HMCUSER runs the CL to start the backups and exists on the HMC as well.
backup HMCs weekly (probably too often...)
CL program to make sure NFS is started then start QSH and run:
(all one line)
ssh -T hmc01.company.com bkconsdata -r nfs -h IBMi.company.com -l
/hmc_backups/ch3hmc02
after the backup, the CL makes sure we keep only the previous 5 backups.
we do a very similar setup to backup the VIO servers
(each on one line) "$1" is a passed parm, the VIOS name
ssh -n -l padmin $1 mkdir /home/padmin/nfs
ssh -n -l padmin $1 ioscli mount IBMi.company.com:/HMC/VIOS_Backups nfs
ssh -n -l padmin $1 ioscli viosbr -backup -file nfs/$1
while the VIOS does not change often, we still run this weekly
i could not find the article about viosbr from 2013
<old url>
http://poweritpro.com/performance/back-your-vios-virtual-devices-viosbr
Bryan
As an Amazon Associate we earn from qualifying purchases.