I read through all nine pages of this, only saw one poster ask about backing up a passed-through disk. I actually don't want to back-up my pass-through, just the vdisk the OS is running on (vdisk1.img in attached image).
Because I'm passing through the disk using 'by-id', which just references the device name, I can't add or change an extension on it as far as I know. That would allow me to use the scripts 'skip extension' feature.
Instead I get this when it runs:
2020-07-18 14:42:21 information: able to perform snapshot for disk /mnt/cache/domains/gameboy/vdisk1.img on gameboy. use_snapshots is 1. vm_state is running. vdisk_type is raw
2020-07-18 14:42:21 information: qemu agent found. enabling quiesce on snapshot.
error: unsupported configuration: source for disk 'hdd' is not a regular file; refusing to generate external snapshot name
2020-07-18 14:42:21 failure: snapshot command failed on vdisk1.snap for gameboy.
2020-07-18 14:42:21 failure: snapshot_fallback is 0. skipping backup for gameboy to prevent data loss. no cleanup will be performed for this vm.
Any idea how to get the script to skip backups where the source is not a file?