How to copy a folder, not a file, to a disposable VM using the terminal?

I am using the sys-multimedia setup in which the multimedia qube uses a minimal template, and only the disposable has the programs needed to open videos/images, etc.

I can run xdg-open or qvm-open-in-dvm in the multimedia qube, but it is extremely time consuming doing this for each single file.

I know that in Qubes’ Thunar integration adds a “Move directory to other qube” menu; is there a CLI command that does the same?

You’re looking for qvm-move?

1 Like

Thanks.

Do you know if there is a way to specify the destination qube without the dialog box? I already have a policy that allows it.

Would you be looking for qvm-copy-to-vm? It is used like this: qvm-copy-to-vm dest_vmname file!
Ofc there is also qvm-move-to-vm.

Be aware that if there is a soft link inside the folder to be copied (or any folder it contains, and so on…), it will fail.