The invention discloses a VMware
virtual machine backup method. The method comprises the following steps: step S1, starting source
virtual machine block tracking; s2, creating a snapshot by the source
virtual machine; s3, storing complete configuration information of the source virtual
machine; s4, judging whether the
backup is locally carried out or not; s5, judging whether
backup is carried out to the NFS or not; S6, creating an MKlink from a complete backup
directory to a temporary
directory of the NFS; step S7, starting an NFS service; step S8, mounting the NFS to the EsXi; step S9, creating a backup disk in the data; and S10, calling the SDK to read and write disk data, and completing backup. According to the method and the device, the complete configuration information of the source virtual
machine is stored in the backup process, so that the integrity and the consistency of the backup file are ensured, and the state of the virtual
machine can be seamlessly recovered during
recovery. By creating the NFS temporary
directory and starting the NFS service, the backup
management process is simplified. And the state of the virtual machine can be quickly and reliably recovered during
disaster recovery.