tasket / wyng-backup

Fast backups for logical volumes & disk images
GNU General Public License v3.0
251 stars 16 forks source link

Cannot restore from multiple sessions/backups of same VM [qubes] #212

Open astingengo opened 3 months ago

astingengo commented 3 months ago

If I'll have just one backup of a VM it will work, but if I'll create multiple backups of the same VM and trying to restore, it will fail The error is

VMs selected: ubuntu22-04
Traceback (most recent call last):
  File "/usr/local/bin/wyng-util-qubes", line 332, in <module>
    (q_wpriv_wrootmap[target][session][ii],
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: 'private'

The command running to restore is:

sudo wyng-util-qubes restore vm --session xxxxxxxx-xxxxxx --dest=qubes://<vm where I'm keeping backups>/location
tasket commented 3 months ago

@astingengo From the output of the direct Wyng listing:

wyng list --dest=<location>

How many entries are there for 'ubuntu22-04' private volumes and how many for root?

astingengo commented 2 months ago

Appears only one for root and one for private

Late response as I removed all backups and created only one ... but I needed again more than one and it failed again :-(

LE: But if I'll use wyng-util-qubes to list all (--all) sessions it will display two

Using lvs command it will show <vm>-private and private.tick and <vm>-root and root.tick