Backing up and restoring data on an Ubuntu 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 an Ubuntu 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 Ubuntu LXD.
Backing up XClarity One
To create a backup of XClarity One using Ubuntu LXD, complete the following steps.
Connect to the command-line interface of the Ubuntu host.
Create a folder in your target backup directory block.
- Stop the active VM by running the following command.
lxc stop VM_NAME - Export the VM to a backup file by running the following command.
lxc export VM_NAME /path/to/backup/VM_NAME.tar.gzAlternatively, perform a quick live backup by running the following command.lxc snapshot VM_NAME SNAPSHOT_NAME Verify the backup tarball archive is created in the target directory (for example, VM_NAME.tar.gz).
Power on the VM again by running the following command.
lxc 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 Ubuntu host.
- Stop the working VM by running the following command.
lxc stop VM_NAME --force - Delete the existing VM from the local hypervisor index by running the following command.
lxc delete VM_NAME --force - Import the backup archive by running the following command.
lxc import /path/to/backup/VM_NAME.tar.gzAlternatively, restore from a local snapshot by running the following command.run lxc restore VM_NAME SNAPSHOT_NAME - Power on the VM by running the following command.
lxc start VM_NAME - Verify the container status by running the following command.
lxc list