1 Reply Latest reply on Jun 25, 2019 1:50 PM by LetsGetESXi

    Only back up specified disks

    LetsGetESXi Lurker

      Hello,

       

      I have created custom policy files for a few of my VMs to only backup one of the disks, however on actually running the script it looks as if this parameter (line 22) is being ignored (I've pasted the log below).

       

      The script recognises the custom config file but, as shown on lines 36 and 37, it proceeds to back up all VMDKs attached to this VM. Even if I enter an invalid disk name in the policy file, it will still proceed in the same way.

       

      Is there something that I have misconfigured or is there another reason for this behaviour?

       

      Thanks in advance for any help.

       

      2019-06-23 19:17:39 -- info: ============================== ghettoVCB LOG START ==============================
      
      
      2019-06-23 19:17:39 -- info: CONFIG - USING CONFIGURATION FILE = ./backup_policies/Nextcloud
      2019-06-23 19:17:39 -- info: CONFIG - VERSION = 2017_12_09_1
      2019-06-23 19:17:39 -- info: CONFIG - GHETTOVCB_PID = 133555
      2019-06-23 19:17:39 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/Backups
      2019-06-23 19:17:39 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 2
      2019-06-23 19:17:39 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2019-06-23_19-17-39
      2019-06-23 19:17:39 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
      2019-06-23 19:17:39 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
      2019-06-23 19:17:39 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
      2019-06-23 19:17:39 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
      2019-06-23 19:17:39 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
      2019-06-23 19:17:39 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
      2019-06-23 19:17:39 -- info: CONFIG - LOG_LEVEL = dryrun
      2019-06-23 19:17:39 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2019-06-23_19-17-39-133555.log
      2019-06-23 19:17:39 -- info: CONFIG - ENABLE_COMPRESSION = 0
      2019-06-23 19:17:39 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
      2019-06-23 19:17:39 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
      2019-06-23 19:17:39 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 1
      2019-06-23 19:17:39 -- info: CONFIG - VMDK_FILES_TO_BACKUP = Nextcloud0.vmdk
      2019-06-23 19:17:39 -- info: CONFIG - VM_SHUTDOWN_ORDER =
      2019-06-23 19:17:39 -- info: CONFIG - VM_STARTUP_ORDER =
      2019-06-23 19:17:39 -- info: CONFIG - RSYNC_LINK = 0
      2019-06-23 19:17:39 -- info: CONFIG - BACKUP_FILES_CHMOD =
      2019-06-23 19:17:39 -- info: CONFIG - EMAIL_LOG = 0
      2019-06-23 19:17:39 -- dryrun: ###############################################
      2019-06-23 19:17:39 -- dryrun: Virtual Machine: Nextcloud
      2019-06-23 19:17:39 -- dryrun: VM_ID: 39
      2019-06-23 19:17:39 -- dryrun: VMX_PATH: /vmfs/volumes/VM Datastore/Nextcloud/Nextcloud.vmx
      2019-06-23 19:17:39 -- dryrun: VMX_DIR: /vmfs/volumes/VM Datastore/Nextcloud
      2019-06-23 19:17:39 -- dryrun: VMX_CONF: Nextcloud/Nextcloud.vmx
      2019-06-23 19:17:39 -- dryrun: VMFS_VOLUME: VM Datastore
      2019-06-23 19:17:40 -- dryrun: VMDK(s):
      2019-06-23 19:17:40 -- dryrun: Nextcloud.vmdk 500 GB
      2019-06-23 19:17:40 -- dryrun: Nextcloud0.vmdk 70 GB
      2019-06-23 19:17:40 -- dryrun: INDEPENDENT VMDK(s):
      2019-06-23 19:17:40 -- dryrun: TOTAL_VM_SIZE_TO_BACKUP: 570 GB
      2019-06-23 19:17:40 -- dryrun: ###############################################
      
      
      2019-06-23 19:17:40 -- info: ###### Final status: OK, only a dryrun. ######
      
      
      2019-06-23 19:17:40 -- info: ============================== ghettoVCB LOG END ======