Manual backup
The backup process involves creating a copy of the data volume from the source system and securely storing it for future recovery.
Procedure
-
List all running instances:
virsh list --allSample outputId Name State ------------------------------ 1 goveng running -
List all block devices attached to the CCRT domain:
virsh domblklist <domain-name>Sample outputTarget Source ------------------------------ vda goveng_ccrt vdb goveng_cloudinit vdc goveng_db -
List storage pools:
virsh pool-listName State Autostart ------------------------------------------------ storagedirpool active yes -
List volume inside storage pool:
virsh vol-list <storage-pool-name>
In this example,Name Path ---------------------------------------------------------------------- ccrt /var/lib/libvirt/images/storage/ccrt goveng_cloudinit /var/lib/libvirt/images/storage/goveng_cloudinit goveng_db /var/lib/libvirt/images/storage/goveng_db goveng_ccrt /var/lib/libvirt/images/storage/goveng_ccrthsm_signer_dbis the data volume to back up. -
Compress the data volume:
zip -r <zip-file> <data-volume>Sample outputzip -r goveng_db.zip goveng_db updating: goveng (deflated 1%) - Copy the compressed file to the target LPAR.