2.10.6.3. Attaching Backups to Linux Containers

  1. Obtain the backup ID and file name with the prlctl backup-list -f command. For example:

    # prlctl backup-list 102 -f
    ...
    Backup_ID: {d70441dd-f077-44a0-8191-27704d4d8fdb}
    ...
    Name: root.hdd.qcow2c
    ...
  2. Attach the backup as an HDD to the Linux container you will access the backup from. You can do this with the prlctl set --backup-add command. For example:

    # prlctl set MyCT --backup-add {d70441dd-f077-44a0-8191-27704d4d8fdb} \
    --disk root.hdd.qcow2c
    Creating hdd1 (+) sata:0 real='backup:///{d70441dd-f077-44a0-8191-27704d4d8fdb}/ \
    root.hdd.qcow2c' backup='{d70441dd-f077-44a0-8191-27704d4d8fdb}' \
    disk='root.hdd.qcow2c'
  3. Using the backup ID, identify the ploop device corresponding to the backup. For example:

    # ploop list | grep {d70441dd-f077-44a0-8191-27704d4d8fdb}
    ploop28261 /buse/{8417a267-0919-4c8f-a31d-68671358d6a8}_ \
    {d70441dd-f077-44a0-8191-27704d4d8fdb}_root.hdd.qcow2c/content
  4. Mount the logical volume as a filesystem. For example:

    # prlctl exec MyCT mount /dev/ploop28261p1 /mnt/backup1

You can now access the backup contents at /mnt/backup1.