Skip to main content

Backing up and restoring on-premises portal 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.

  1. Connect to the command-line interface of the Ubuntu host.

  2. Create a folder in your target backup directory block.

  3. Stop the active VM by running the following command.
    lxc stop VM_NAME
  4. Export the VM to a backup file by running the following command.
    lxc export VM_NAME /path/to/backup/VM_NAME.tar.gz
    Alternatively, perform a quick live backup by running the following command.
    lxc snapshot VM_NAME SNAPSHOT_NAME
  5. Verify the backup tarball archive is created in the target directory (for example, VM_NAME.tar.gz).

  6. 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.

  1. Connect to the command-line interface of the Ubuntu host.

  2. Stop the working VM by running the following command.
    lxc stop VM_NAME --force
  3. Delete the existing VM from the local hypervisor index by running the following command.
    lxc delete VM_NAME --force
  4. Import the backup archive by running the following command.
    lxc import /path/to/backup/VM_NAME.tar.gz
    Alternatively, restore from a local snapshot by running the following command.
    run lxc restore VM_NAME SNAPSHOT_NAME
  5. Power on the VM by running the following command.
    lxc start VM_NAME
  6. Verify the container status by running the following command.
    lxc list