Please Help: Qubes Backup Restore Over SMB Share Fails | Minimal Template

I created a minimal VM for mounting my SMB shares and moving my QubesOS backups. This works fine, but the restore fails with an error message that I don’t understand. I debugged my problem to the point where I can verify my backup via a second VM based on Fedora-38 - so this should be a dependency problem of my configured minimal VM. But what package is missing?

The restore error:

Finished with errors!
unable to read the qubes backup file /run/user/1000/gvfs/smb-share:server=IP,share=PATH (118): b'Starting Restorecopy\nArguments: /run/user/1000/gvfs/smb-share:server=IP,share=PATH\nPaths: vm29/ vm17/ vm6/ vm15/ vm28/ vm46/ vm14/ vm58/ vm49/ vm26/ vm39/ vm27/ vm3/ vm4/ vm11/ vm54/ vm32/ vm25/ vm10/ vm48/ vm19/ vm21/ vm53/ vm36/ vm38/ vm40/ vm31/ vm34/ vm42/ vm37/ vm35/ vm8/ vm13/ vm1/ vm12/ vm20/ vm43/ vm2/ vm16/ vm9/ vm22/ vm18/ vm50/ vm51/ vm7/ dom0-home\nPerforming restore from backup file /run/user/1000/gvfs/smb-share:server=IP,share=PATH\nCopying /run/user/1000/gvfs/smb-share:server=IP,share=PATH to STDOUT\ntar2qfile: Fatal error: Copying file vm3/root.img.002.enc: Error reading (error type: Invalid argument)\n'
Partially restored files left in /var/tmp/restore_*, investigate them and/or clean them up

My installed packages:

dnf install qubes-core-agent-networking qubes-usb-proxy qubes-core-agent-nautilus man rsync wget htop openssh-clients gnome-disk-utility oathtool gedit qbittorrent keepassxc evolution nautilus wireguard-tools qrencode gnome-calculator gnome-keyring gimp yt-dlp libreoffice evince gvfs-smb gvfs-fuse iputils

You should try to mount the remote using the command mount.cifs instead of the gvfs (if it’s what you did).

1 Like

This is how I mounted my SMB shares: gio mount smb://IP/PATH It works fine (even shows up in Nautilus) except for the mentioned problem.

What command I should run?

This way? Mount an SMB Share in Linux | Linode Docs

Thank you so much! You were right. I followed the Linode guide and now my backups are successfully backed up and restored via my minimal VM.

I installed the following package in my Fedora 38 Minimal Template: dnf install cifs-utils

1 Like