The plugin is really interesting and i'm doing some experiments with it. It doesn't work at all in my case, i assume because my VMs are not stored in a virtual disk, but directly to physical partitions with the /dev/disk/by-id/ syntax. I don't even know if this setup is supported by the plugin.
Here's my log
2020-05-01 14:09:45 Starting VM Backup for default config.
2020-05-01 14:09:45 PID: 4501
2020-05-01 14:09:45 User script copied to /tmp/vmbackup/scripts/default/user-script.sh
2020-05-01 14:09:45 Running command: '/tmp/vmbackup/scripts/default/user-script.sh' >> '/tmp/vmbackup/scripts/default/20200501_140945_user-script.log' 2>&1
2020-05-01 14:09:45 information: official_script_name is user-script.sh. script file's name is user-script.sh. script name is valid. continuing.
2020-05-01 14:09:45 information: enabled is 1. script is enabled. continuing.
2020-05-01 14:09:45 information: backup_location is /mnt/user/backup_VM_jtok. this location exists. continuing.
2020-05-01 14:09:45 information: backup_location is /mnt/user/backup_VM_jtok. this location is writable. continuing.
2020-05-01 14:09:45 information: timestamp_files is 1. timestamp will be added to backup files.
2020-05-01 14:09:45 information: /mnt/user/backup_VM_jtok/logs/ exists. continuing.
2020-05-01 14:09:45 information: log_file_subfolder is /mnt/user/backup_VM_jtok/logs/. this location exists. continuing.
2020-05-01 14:09:45 information: log_file_subfolder is /mnt/user/backup_VM_jtok/logs/. this location is writable. continuing.
2020-05-01 14:09:45 Start logging to log file.
2020-05-01 14:09:45 information: send_notifications is 1. notifications will be sent.
2020-05-01 14:09:45 information: only_send_error_notifications is 0. normal notifications will be sent if send_notifications is enabled.
2020-05-01 14:09:45 information: unRAID VM Backup script is starting. Look for finished message.
2020-05-01 14:09:45 information: keep_log_file is 1. log files will be kept.
2020-05-01 14:09:45 information: number_of_log_files_to_keep is 1. this is probably a sufficient number of log files to keep.
2020-05-01 14:09:45 information: enable_vm_log_file is 0. vm specific logs will not be created.
2020-05-01 14:09:45 information: backup_all_vms is 0. only vms listed in vms_to_backup will be backed up.
2020-05-01 14:09:45 information: use_snapshots is 0. vms will not be backed up using snapshots.
2020-05-01 14:09:45 information: kill_vm_if_cant_shutdown is 0. vms will not be forced to shutdown if a clean shutdown can not be detected.
2020-05-01 14:09:45 information: set_vm_to_original_state is 1. vms will be set to their original state after backup.
2020-05-01 14:09:45 information: number_of_days_to_keep_backups is 0. backups will be kept indefinitely. be sure to set number_of_backups_to_keep to keep backups storage usage down.
2020-05-01 14:09:45 information: number_of_backups_to_keep is 0. an infinite number of backups will be kept. be sure to set number_of_days_to_keep_backups to keep backups storage usage down.
2020-05-01 14:09:45 information: inline_zstd_compress is 0. vdisk images will not be inline compressed.
2020-05-01 14:09:45 information: pigz_compress is 0. backups will not be post compressed.
2020-05-01 14:09:45 information: use_snapshots disabled, not adding snapshot_extension to vdisk_extensions_to_skip.
2020-05-01 14:09:45 information: snapshot_fallback is 0. snapshots will fallback to standard backups.
2020-05-01 14:09:45 information: pause_vms is 0. vms will be shutdown for standard backups.
2020-05-01 14:09:45 information: enable_reconstruct_write is 0. reconstruct write will not be enabled by this script.
2020-05-01 14:09:45 information: compare_files is 0. files will not be compared after backups.
2020-05-01 14:09:45 information: backup_xml is 1. vms will have their xml configurations backed up.
2020-05-01 14:09:45 information: backup_nvram is 1. vms will have their nvram backed up.
2020-05-01 14:09:45 information: backup_vdisks is 1. vms will have their vdisks backed up.
2020-05-01 14:09:45 information: start_vm_after_backup is 0. vms will not be started following successful backup.
2020-05-01 14:09:45 information: start_vm_after_failure is 0. vms will not be started following an unsuccessful backup.
2020-05-01 14:09:45 information: disable_delta_sync is 0. rsync will be used to perform delta sync backups.
2020-05-01 14:09:45 information: rsync_only is 0. cp will be used when applicable.
2020-05-01 14:09:45 information: actually_copy_files is 1. files will be copied.
2020-05-01 14:09:45 information: clean_shutdown_checks is 20. this is probably a sufficient number of shutdown checks.
2020-05-01 14:09:45 information: seconds_to_wait is 30. this is probably a sufficient number of seconds to wait between shutdown checks.
2020-05-01 14:09:45 information: keep_error_log_file is 1. error log files will be kept.
2020-05-01 14:09:45 information: number_of_error_log_files_to_keep is 10. this is probably a sufficient error number of log files to keep.
2020-05-01 14:09:45 information: started attempt to backup Win10-Ufficio1 to /mnt/user/backup_VM_jtok
2020-05-01 14:09:45 information: Win10-Ufficio1 can be found on the system. attempting backup.
2020-05-01 14:09:45 information: removing old local Win10-Ufficio1.xml.
removed 'Win10-Ufficio1.xml'
2020-05-01 14:09:45 information: creating local Win10-Ufficio1.xml to work with during backup.
2020-05-01 14:09:45 information: /mnt/user/backup_VM_jtok/Win10-Ufficio1 exists. continuing.
/tmp/vmbackup/scripts/default/user-script.sh: line 424: vdisk_types["$vdisk_path"]: bad array subscript
2020-05-01 14:09:45 information: finished attempt to backup Win10-Ufficio1 to /mnt/user/backup_VM_jtok.
2020-05-01 14:09:45 information: cleaning out logs over 1.
2020-05-01 14:09:45 information: did not find any log files to remove.
2020-05-01 14:09:45 information: cleaning out error logs over 10.
find: '/mnt/user/backup_VM_jtok/logs/*unraid-vmbackup_error.log': No such file or directory
2020-05-01 14:09:45 information: did not find any error log files to remove.
2020-05-01 14:09:45 Stop logging to log file.
2020-05-01 14:09:45 Removed: /tmp/vmbackup/scripts/default/user-script.sh
2020-05-01 14:09:45 Removed: /tmp/vmbackup/scripts/default.pid
Here's the VM xml file:
<domain type='kvm' id='5'>
<name>Win10-Ufficio1</name>
<uuid>36ebe287-1a09-15af-c4c4-436fd24fc104</uuid>
<metadata>
<vmtemplate xmlns="http://unraid.net/xmlns" name="Windows 10" icon="windows.png" os="windows10"/>
</metadata>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<memoryBacking>
<nosharepages/>
</memoryBacking>
<vcpu placement='static'>2</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='2'/>
<vcpupin vcpu='1' cpuset='14'/>
</cputune>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
</os>
<features>
<acpi/>
<apic/>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
<vendor_id state='on' value='none'/>
</hyperv>
</features>
<cpu mode='host-passthrough' check='none'>
<topology sockets='1' cores='1' threads='2'/>
<cache mode='passthrough'/>
</cpu>
<clock offset='localtime'>
<timer name='hypervclock' present='yes'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/local/sbin/qemu</emulator>
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='writeback'/>
<source dev='/dev/disk/by-id/ata-CT240BX500SSD1_1901E16A30A5-part1' index='3'/>
<backingStore/>
<target dev='hdc' bus='virtio'/>
<boot order='1'/>
<alias name='virtio-disk2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/mnt/user/isos/Win10_1803_Italian_x64.iso' index='2'/>
<backingStore/>
<target dev='hda' bus='ide'/>
<readonly/>
<boot order='2'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/mnt/user/isos/virtio-win-0.1.173-2.iso' index='1'/>
<backingStore/>
<target dev='hdb' bus='ide'/>
<readonly/>
<alias name='ide0-0-1'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<alias name='usb'/>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<alias name='usb'/>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<alias name='usb'/>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<alias name='virtio-serial0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:d6:15:7e'/>
<source bridge='br0'/>
<target dev='vnet2'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/4'/>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/4'>
<source path='/dev/pts/4'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<channel type='unix'>
<source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-5-Win10-Ufficio1/org.qemu.guest_agent.0'/>
<target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
<alias name='channel0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='tablet' bus='usb'>
<alias name='input0'/>
<address type='usb' bus='0' port='1'/>
</input>
<input type='mouse' bus='ps2'>
<alias name='input1'/>
</input>
<input type='keyboard' bus='ps2'>
<alias name='input2'/>
</input>
<graphics type='vnc' port='5902' autoport='yes' websocket='5702' listen='0.0.0.0' keymap='it'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='dac' relabel='yes'>
<label>+0:+100</label>
<imagelabel>+0:+100</imagelabel>
</seclabel>
</domain>