How do I backup a Whonix KVM Virtual machine

Lately my hard disk is starting to fail and I have KVM Whonix VMs that has lots of files and configuration that I don’t want to leave behind. How would I backup the whole kvm Whonix image

I guess you could make an image of your drive with the dd command and copy it to a new one. Boot with the new drive to check that it works.