Is there a better way to verify that the qubes based backup succeeds?

I discovered today that, while I backup all AppVM and TemplateVM in one time 
(via GUI),  the backups created going back to February all consistently fail to 
restore one particular appVM,,,,

Yesterday I needed a clean laptop for a travel so I did a full backup and then 
removed my "storage" AppVM that contain all my documents as well I delete 2 
other AppVM, "gpg" and "chat".   Can you see where this go......?

Today I go to restore the deleted AppVM via GUI.   "gpg" and "chat" restore 
perfect but "storage" gives error even though when I veryify the archive it is 
ok :((

   ERROR: [Errno 2] No such file or directory: u'/var/tmp/restore_LtT4Jk/vm1'
   *** Skipping VM: storage
   -> Done. Please install updates for all the restored templates.
   -> Completed with errors!
   

 I try using "qvm-backup-restore -d sys-usb /path/to/backup/qubes_backup_time 
storage --debug" to see if there are more details.  It fails too and no much 
details are extra  See attached restore_errors.txt where it try vm17
 
 
What is interesting is that for some reason it is trying to restore vm17 which 
is not my "storage" vm based on the qubes.xml in the same directory.  My 
"storage" vm should be 1.

I was able to do "emergency backup recovery" on files in vm1 directory and as 
hoped, all my "storage" appVM files were in there.

I had to go to backups from February before I could find one that would restore 
"storage" appVM from GUI or qvm-backup-restore

Some questions

- how can I better veryify backups working?
- why does it seem qubes is getting confused about appVM qid on restore?
- at top of restore_error.txt file it says only 1MB to restore, even when AppVM 
is 1.8GB is size,  why size difference?
- is there anything I can do to compare the good backup that restores via gui 
and any of the many broken backups to see what went wrong?
- how can I be sure this qid mixup won't happen again?


-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/KnBPDPp--3-0%40tutanota.com.
For more options, visit https://groups.google.com/d/optout.
Working in temporary dir:/var/tmp/restore_LtT4Jk
Extracting data: 1.0 MiB to restore
Run command[u'/usr/libexec/qubes/qfile-dom0-unpacker', '1000', 
u'/var/tmp/restore_LtT4Jk', u'-v']
Got backup header and hmac: backup-header, backup-header.hmac
Verifying file /var/tmp/restore_LtT4Jk/backup-header
Loading hmac for file /var/tmp/restore_LtT4Jk/backup-header
File verification OK -> Sending file /var/tmp/restore_LtT4Jk/backup-header
Creating pipe in: /var/tmp/restore_LtT4Jk/restore_pipe
Getting new file:qubes.xml.000
Getting hmac:qubes.xml.000.hmac
Verifying file /var/tmp/restore_LtT4Jk/qubes.xml.000
Started sending thread
Moving to dir /var/tmp/restore_LtT4Jk
Loading hmac for file /var/tmp/restore_LtT4Jk/qubes.xml.000
File verification OK -> Sending file /var/tmp/restore_LtT4Jk/qubes.xml.000
Getting new file:
Waiting for the extraction process to finish...
Extracting file /var/tmp/restore_LtT4Jk/qubes.xml.000
Running command [u'tar', u'-xkv', u'qubes.xml']
Removing file /var/tmp/restore_LtT4Jk/qubes.xml.000
qubes.xml
Finished extracting thread
Extraction process finished with code:0
Loading file /var/tmp/restore_LtT4Jk/qubes.xml
storage is included in backup
whonix-gw is included in backup
whonix-ws is included in backup
sys-net is included in backup
sys-firewall is included in backup
debian-8-live is included in backup
sys-whonix is included in backup
anon-whonix is included in backup
xxxx5 is included in backup
debian-8-sec is included in backup
debian-8-stable-java is included in backup
xxxx4 is included in backup
net-xxxx is included in backup
xxxx1 is included in backup
xxxx2 is included in backup
xxxx3 is included in backup
chat is included in backup
gpg is included in backup
personal is included in backup
xxxx6 is included in backup
xxxx7 is included in backup
xxxx8 is included in backup
xxxx9 is included in backup
fedora-24-live is included in backup
xxxx10 is included in backup

The following VMs are included in the backup:

--------------+------+------------------+-------+-------+-------+
         name | type |         template | updbl | netvm | label |
--------------+------+------------------+-------+-------+-------+
 storage |  App | debian-8-live |       |     - | green | <-- Will be renamed 
to 'storage'

The above VMs will be copied and added to your system.
Exisiting VMs will NOT be removed.
Do you want to proceed? [y/N] Working in temporary dir:/var/tmp/restore_LtT4Jk
Extracting data: 1.7 GiB to restore
Run command[u'/usr/libexec/qubes/qfile-dom0-unpacker', '1000', 
u'/var/tmp/restore_LtT4Jk', u'-v']
Creating pipe in: /var/tmp/restore_LtT4Jk/restore_pipe
Started sending thread
Moving to dir /var/tmp/restore_LtT4Jk
Getting new file:vm17/private.img.000
Getting hmac:vm17/private.img.000.hmac
Verifying file /var/tmp/restore_LtT4Jk/vm17/private.img.000
Loading hmac for file /var/tmp/restore_LtT4Jk/vm17/private.img.000
File verification OK -> Sending file 
/var/tmp/restore_LtT4Jk/vm17/private.img.000
Extracting file /var/tmp/restore_LtT4Jk/vm17/private.img.000
Running command [u'tar', u'-xkv', u'vm17/private.img']
vm17/private.img
Getting new file:vm17/private.img.001
Getting hmac:vm17/private.img.001.hmac
Verifying file /var/tmp/restore_LtT4Jk/vm17/private.img.001
Loading hmac for file /var/tmp/restore_LtT4Jk/vm17/private.img.001
Removing file /var/tmp/restore_LtT4Jk/vm17/private.img.000
File verification OK -> Sending file 
/var/tmp/restore_LtT4Jk/vm17/private.img.001
Extracting file /var/tmp/restore_LtT4Jk/vm17/private.img.001
Releasing next chunck
Getting new file:vm17/private.img.002
Getting hmac:vm17/private.img.002.hmac
Verifying file /var/tmp/restore_LtT4Jk/vm17/private.img.002
Loading hmac for file /var/tmp/restore_LtT4Jk/vm17/private.img.002
Removing file /var/tmp/restore_LtT4Jk/vm17/private.img.001
File verification OK -> Sending file 
/var/tmp/restore_LtT4Jk/vm17/private.img.002
Extracting file /var/tmp/restore_LtT4Jk/vm17/private.img.002
Releasing next chunck
Getting new file:vm17/private.img.003
Getting hmac:vm17/private.img.003.hmac
Verifying file /var/tmp/restore_LtT4Jk/vm17/private.img.003
Loading hmac for file /var/tmp/restore_LtT4Jk/vm17/private.img.003
File verification OK -> Sending file 
/var/tmp/restore_LtT4Jk/vm17/private.img.003
Getting new file:vm17/icon.png.000
Getting hmac:vm17/icon.png.000.hmac
Verifying file /var/tmp/restore_LtT4Jk/vm17/icon.png.000
Loading hmac for file /var/tmp/restore_LtT4Jk/vm17/icon.png.000
File verification OK -> Sending file /var/tmp/restore_LtT4Jk/vm17/icon.png.000
Getting new file:vm17/whitelisted-appmenus.list.000
Getting hmac:vm17/whitelisted-appmenus.list.000.hmac
Verifying file /var/tmp/restore_LtT4Jk/vm17/whitelisted-appmenus.list.000
Loading hmac for file /var/tmp/restore_LtT4Jk/vm17/whitelisted-appmenus.list.000
File verification OK -> Sending file 
/var/tmp/restore_LtT4Jk/vm17/whitelisted-appmenus.list.000
Getting new file:
Waiting for the extraction process to finish...
Removing file /var/tmp/restore_LtT4Jk/vm17/private.img.002
Extracting file /var/tmp/restore_LtT4Jk/vm17/private.img.003
Releasing next chunck
Removing file /var/tmp/restore_LtT4Jk/vm17/private.img.003
Extracting file /var/tmp/restore_LtT4Jk/vm17/icon.png.000
Running command [u'tar', u'-xkv', u'vm17/icon.png']
Removing file /var/tmp/restore_LtT4Jk/vm17/icon.png.000
Extracting file /var/tmp/restore_LtT4Jk/vm17/whitelisted-appmenus.list.000
vm17/icon.png
Running command [u'tar', u'-xkv', u'vm17/whitelisted-appmenus.list']
Removing file /var/tmp/restore_LtT4Jk/vm17/whitelisted-appmenus.list.000
vm17/whitelisted-appmenus.list
Finished extracting thread
Extraction process finished with code:0
-> Restoring QubesAppVm storage...
ERROR: [Errno 2] No such file or directory: u'/var/tmp/restore_LtT4Jk/vm1'
*** Skipping VM: storage
-> Done. Please install updates for all the restored templates.
-> Completed with errors!

Reply via email to