#1 2017-10-12 20:56:56

marcoi
Member
Registered: 2017-04-24
Posts: 8

REGEXP for VM selection doesnt appear to work.

I'm trying to use --backup-vms="REGEXP(^DEV)" to backup my vms starting with DEV code.

when i try the following command it works:
vim-cmd vmsvc/getallvms | tail -n +2 | awk
-F '[' '{print $1}' | awk -F ' ' '{for (i=2; i<NF; i++) printf $i " "; print $NF}' | grep -e '^DEV'
DEV_pfSense
DEV_D100
DEV_FreeNas

when i try it in a cmd
/vmfs/volumes/SSD/xsibackup/xsi
backup  --backup-prog=xsitools:z --backup-point="/vmfs/volumes/xsibackup/Weekly/$(date +%U)"  --
backup-type=custom --backup-vms="REGEXP(^DEV)"  --smart-info=yes --mail-to=i@gmail.com --use-smtp=1 --test-mode
=true

I get the following message
----------------------------------------------------------------------------------------------------------------------
Error NOVM2BAK: no VMs to backup
----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------
Errors detected in backup, check logs

Im running version XSIBACKUP-PRO 10.0.3.

what am i missing?

Offline

#2 2017-10-13 10:46:20

roberto
Moderator
Registered: 2017-04-22
Posts: 49

Re: REGEXP for VM selection doesnt appear to work.

The regexp feature will come out with v 10.0.4, still preparing.

Last edited by roberto (2017-10-13 10:46:43)

Offline

#3 2017-10-13 12:33:19

marcoi
Member
Registered: 2017-04-24
Posts: 8

Re: REGEXP for VM selection doesnt appear to work.

thanks for update. looking forward to new version.

Offline

Board footer