Backing up and restoring data on a RedHat host
When running XClarity One on premises, you might need to restore system data, settings, and imported files from a backup. Several alternatives are available to backup and restore an XClarity One that is running on a RedHat host. The specific process to use to restore from a backup are typically based on the process that was used to create the backup. This topic discusses how to backup and restore using the RedHat hypervisor.
Backing up XClarity One
To create a backup of XClarity One using the RedHat hypervisor, complete the following steps.
Connect to the command-line interface of the RHEL hypervisor host.
Stop the VM by running the following command.
virsh shutdown VM_NAMEExport the VM metadata configuration to a file by running the following command.
virsh dumpxml VM_NAME > VM_NAME.xmlCreate a folder in your target backup directory block.
Locate the source file path of the virtual disk inside the exported XML configuration.
Copy the qcow2 virtual disk file to your backup directory.
Copy the exported XML configuration file to your backup directory.
Power on the VM again by running the following command.
virsh start VM_NAME
Restoring XClarity One
To restore XClarity One using the backup that was created in the previous procedure, complete the following steps.
Connect to the command-line interface of the RHEL hypervisor host.
Stop the running VM by running the following command.
virsh destroy VM_NAMERemove the VM from the hypervisor inventory by running the following command.
virsh undefine VM_NAMEDelete the broken or outdated qcow2 virtual disk file from the active storage directory.
Copy the backup qcow2 virtual disk file from the backup directory back to the active storage directory.
Copy the backup XML configuration file to the hypervisor host.
Register the VM configuration back into the inventory by running the following command.
virsh define VM_NAME.xmlPower on the VM by running the following command.
virsh start VM_NAME