Bug in qubes-backup or tar?

33 views
Skip to first unread message

svenss...@gmail.com

unread,
Jun 17, 2017, 5:19:18 AM6/17/17
to qubes-users
Emergency recovery of backups as described in https://www.qubes-os.org/doc/backup-emergency-restore-v3/ states that tar should be able to unpack a qubes backup file.

It seems that qvm-backup produces a corrupt tar file, or the included tar has a bug. It seems to include data, but only one file will show up in list or extract.

My system is a recently updated 3.2.

# To reproduce, run in dom0:
qvm-create -t fedora-23 -l red test-bu
qvm-start test-bu
qvm-run test-bu 'echo "This text should be included in backup." > examplefile'
qvm-run -p test-bu 'ls -l e*; cat examplefile'
# Shows file and text
qvm-run test-bu 'sudo shutdown 0'
mkdir bu
qvm-backup bu test-bu
# Choose 'y', empty passphrase
tar tvf bu/qubes-*
# Shows only backup-header, size 94 bytes, no other file.
# Extracting the tar file produces only backup-header.
# However, the tar file has size 563200 bytes.

Connor Page

unread,
Jun 17, 2017, 5:36:29 AM6/17/17
to qubes-users
qvm-backup has a different syntax and vms are excluded from rather than included in a backup.

svenss...@gmail.com

unread,
Jun 17, 2017, 6:43:35 AM6/17/17
to qubes-users
On Saturday, June 17, 2017 at 11:36:29 AM UTC+2, Connor Page wrote:
> qvm-backup has a different syntax and vms are excluded from rather than included in a backup.

Well, it also lists the VMS that are about to be backed up, for confirmation. The test-bu VM was listed, and no other VMs.

Also, if the VM was not included in the backup, why is the backup file so much larger than what it supposedly contains?

Rusty Bird

unread,
Jun 17, 2017, 7:02:02 AM6/17/17
to svenss...@gmail.com, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

svenss...@gmail.com:
> Emergency recovery of backups as described in
> https://www.qubes-os.org/doc/backup-emergency-restore-v3/ states
> that tar should be able to unpack a qubes backup file.
>
> [...]
> tar tvf bu/qubes-*
> # Shows only backup-header, size 94 bytes, no other file.
> # Extracting the tar file produces only backup-header.
> # However, the tar file has size 563200 bytes.

The -i (--ignore-zeros) parameter is missing in the tar command.

Rusty
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZRQv0XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEI1OUJDRkM2MkIxMjlGRTFCMDZEMDQ0
NjlENzhGNDdBQUYyQURGAAoJEEadePR6ryrfohgQAIra88HMA5feWJTII1Aodg53
yvNYaFHo8YR9RX3GlprYgMDjil8PMy0sHUNWYzN7rAkyqsuyJWzCEI0eeVKOVlK+
nvMbFCAg6259kXnpCcQwYbLvpoLR/IVAntAwMcEEXGPsREQhUoxu1U1Ou/hmgpJN
xg4kUK/+mYebWvNfMBTYDgL+iqv9RMJBhXIctybsb/o0xBq2AmAciZEPZgPBgnBI
9CZDvJA1Zs5tTvW8WShir+JtLMRlOkuACVOJNy6pRzJVkuo3KkaG24GBx5qPXXHb
7NlbuLba7vZI3eF0ApJ20p2gM97ljVJEjBZ75xmbkpPCE9If3LrefEQ7heC0oihJ
m9Y7Z26FN/wDFP2uEop5GLPcINqxr8WaChHLjosDJl+sGonAorrN3aXB5YpMxu9L
RlUgXKb2d24RqET8QghG8q0JYhkwkJYy+HdA67CgrYLYNEMUiC72ZMQCg8bqJQis
1NzDWgmXbf9lBQH8IjLMGcGzGZKBDLyGF4u0ONYoQc8PMURit3K2zwhWFbdlpGa7
/h5q9qfiA2oA2N6ehZsHQ8waCbBGb5KrZEiEs9PPmvZ1zMCg0sIpKRdiYzHsP4B/
sdXW7n7SVaX31AXljOfIxWChpUP3GA0BMZugiZHaKrWwqqqZ0FSR5I8+xROveIHJ
9nt/w5KheaDFIpSYOUo2
=2C80
-----END PGP SIGNATURE-----

Axel Svensson

unread,
Jun 17, 2017, 8:10:54 AM6/17/17
to qubes-users
The -i (--ignore-zeros) parameter is missing in the tar command.

So it is. Thank you!
Reply all
Reply to author
Forward
0 new messages