If you only want to check whether the compressed file is not corrupt, you could use a simple script decompressing the file to
/dev/null
. For example, for an lzo-compressed image
Code:
lzop -dc vzdump-lxc-100-2020_04_30-09_45_02.tar.lzo > /dev/null
If you want to test full restores automatically you could write a script using
qmrestore
and
qm destroy
, where you'll have to be careful with the IDs you use. But of course there's a potentially big performance hit in doing so.