Backing Up a TrueNAS Virtual Machine
TrueNAS virtual-machine backup
Exporting a virtual machine
TrueNAS SCALE virtualization stores virtual machines in ZVOLs. Their device paths are under:
/dev/zvolOpen Virtualization → Devices → Disk → Edit to view the path used by a particular virtual machine.



Use dd to export the virtual machine as a raw .img file:
dd if=/dev/zvol/main/winserver-93x9q3 of=/mnt/main/backup/winserver.imgHere, if is the source—the ZVOL device—and of is the destination file.
Importing a virtual machine
After creating a new ZVOL, use dd to restore the image into it:
dd if=/mnt/main/backup/winserver.img of=/dev/zvol/main/winserver-93x9q3