lamw / ghettoVCB

ghettoVCB
MIT License
1.29k stars 365 forks source link

Backup no power down with snapshots #326

Open RailsGuy opened 2 weeks ago

RailsGuy commented 2 weeks ago

Hi all, I'm using ghettoVCB on ESXi 8 and have a question about power down and snapshots.

I'm was backing up a VM that has a user created snapshot with setting "POWER_VM_DOWN_BEFORE_BACKUP = 0". A dry run logged the following message, however, when I ran a backup it appears to have succeeded. I was expecting it to fail and was surprised the backup was taken. Should this have failed and is the resulting backup valid or corrupt?

Dry run

dryrun: VMDK(s): 
dryrun:     Basic TEST VM-000001.vmdk   0 GB
dryrun: INDEPENDENT VMDK(s): 
dryrun: TOTAL_VM_SIZE_TO_BACKUP: 0 GB
dryrun: THIS VIRTUAL MACHINE WILL NOT BE BACKED UP DUE TO EMPTY VMDK LIST!

Backup

info: Initiate backup for Basic_TEST_VM
info: Creating Snapshot "ghettoVCB-snapshot-2024-11-08" for Basic_TEST_VM
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/datastore1/Basic_TEST_VM/Basic TEST VM-000001.vmdk'...
Clone: 87% done.
info: Removing snapshot from Basic_TEST_VM  ...
info: Backup Duration: 38 Seconds
info: Successfully completed backup for Basic_TEST_VM!