Does qvm-copy verify the copied files? e.g. with checksums?

I am backing up, and I use qvm-copy-to-vm while doing so to copy files from a qube to another (e.g. from vault to gpg and from gpg to upload.)

Does qvm-copy-to-vm verify the copied file(s)? E.g. with checksums (e.g. md5)? (I use qvm-copy-to-vm instead of qvm-copy because I have scripts to automate backups)

If yes: Is it possible to change the checksum method (e.g. from md5 to sha256 or sha512)?
If no: Is it possible to make qvm-copy-to-vm verifies the copied files? If yes, how? If no, then how do you all verify? I don’t think you all don’t verify, especially if it’s backups, that one will not use unless they lost their data, in which case it will be fatal if backups are corrupt due to not verifying them when they were copied.

1 Like

Some design document: qubes-doc/developer/services/qfilecopy.md at main · QubesOS/qubes-doc · GitHub

the packer programs use the function qubes-linux-utils/qrexec-lib/unpack.c at aa87982c2c20ab40c4bd65e224568fc802ba9f29 · QubesOS/qubes-linux-utils · GitHub which seems to do some integrity check

1 Like