lamw / ghettoVCB

ghettoVCB
MIT License
1.29k stars 365 forks source link

DISK_BACKUP_FORMAT=thin but copies as a thick #315

Open dpanic opened 7 months ago

dpanic commented 7 months ago

Hello,

I have set DISK_BACKUP_FORMAT=thin

ESXi version 8.0.2

root@esxi:/vmfs/volumes/66020dc8-327aa02d-3f2c-7cc2556fc634/gitlab.lan] du -m 146917 .

But on my NAS it is 512GB image

CONFIG

VM_BACKUP_VOLUME=/vmfs/volumes/synology
DISK_BACKUP_FORMAT=thin
VM_BACKUP_ROTATION_COUNT=3
POWER_VM_DOWN_BEFORE_BACKUP=0
ENABLE_HARD_POWER_OFF=0
ITER_TO_WAIT_SHUTDOWN=3
POWER_DOWN_TIMEOUT=5
ENABLE_COMPRESSION=0
VM_SNAPSHOT_MEMORY=0
VM_SNAPSHOT_QUIESCE=0
ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP=0
ENABLE_NON_PERSISTENT_NFS=0
UNMOUNT_NFS=0
NFS_SERVER=
NFS_VERSION=
NFS_MOUNT=
NFS_LOCAL_NAME=
NFS_VM_BACKUP_DIR=
SNAPSHOT_TIMEOUT=15
EMAIL_ALERT=1
EMAIL_LOG=1
EMAIL_SERVER=outbound.lan
EMAIL_SERVER_PORT=25
EMAIL_DELAY_INTERVAL=1
EMAIL_USER_NAME=
EMAIL_USER_PASSWORD=
EMAIL_TO=[redacted]
EMAIL_ERRORS_TO=[redacted]
EMAIL_FROM=[redacted]
WORKDIR_DEBUG=0
VM_SHUTDOWN_ORDER=
VM_STARTUP_ORDER=

CRON

5 * * * * /vmfs/volumes/storage/tooling/ghettovcb/bin/ghettoVCB.sh -m gitlab.lan -g /vmfs/volumes/storage/tooling/ghettovcb/ghettoVCB.conf 2>&1 | tee /var/log/ghettoVCB.gitlab.log > /vmfs/volumes/synology/ghettoVCB.gitlab.log