Deja Dup and QEMU Virtual Machine Backup

I’m using Timeshift for system backups, and have just installed deja-dup to perform regular backups of my user files.

My question is this: Everything I do as a user in pretty much in my /home/user directory, except that I have a QEMU virtual machine which is located in /var/lib/libvirt/images/

When I created my first backup, I specified both my home folder and the images folder above. Everything was backed up except the qcow2 image file for my virtual machine. Another iso in the same directory was backed up. I suspect that this is someone permissions related, but I’m not sure what to do to fix the problem. Any help would be appreciated!

If it is, then you should check the permissions on the file itself and on the containing directory, as well as the ownership of the file.

If you need any help with that, then please peruse this fine tutorial below, written by someone who knows his stuff. :crazy_face:

:point_down:

[Tutorial] Understanding and working with UNIX filesystems and permissions

:face_with_hand_over_mouth:

1 Like

By default the images created there are owned by the libvirt user. Try adding your user to the libvirt group, assuming you run deja-dup withouth sudo a.k.a. with your user rights. And maybe just for good measure add yourself to the libvirt-qemu groop too.

5 Likes

Alas, I’m now in both groups and still can’t back up the file. The permissions in questions are these:

-rw------- 1 libvirt-qemu libvirt-qemu 68730224640 May 20 17:46 OrangekaratWin10.qcow2
-rw-r--r-- 1 libvirt-qemu libvirt-qemu   726501376 Apr  9 15:36 virtio-win.iso

As you can see, the virtio-win.iso file has group r/w permissions and user r/w permissions, but the qcow2 they (the VM data itself) has r/w user permissions but no r/w permissions for the group. And because I’m not that user, I think that’s why I can’t backup the file. Is that right?

No, it has read permission for everyone, but only write permission for the owner.

Neither of those two files has write permission for the group or others, and the OrangekaratWin10.qcow2 file has no read permission for anyone other than the owner.

sudo chmod 644 OrangekaratWin10.qcow2

… should fix that.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.