©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2022-03-20 17:25:56

drenton
Member
Registered: 2022-03-20
Posts: 2

arithmetic syntax error

VMware ESXi 6.5.0 build-8294253
XSIBackup version 1.5.1.10

When executing the following command :

./xsibackup --replica=cbt "VMs(vmname)" "root@192.168.1.1:22:/vmdks/replicas/$(( $(date +%j) % 5 ))"

I'm getting this error :

-sh: arithmetic syntax error

192.168.1.1 is running Rocky Linux 8.5

Thanks,
Dale

Offline

#2 2022-03-21 08:29:50

admin
Administrator
Registered: 2017-04-21
Posts: 2,072

Re: arithmetic syntax error

Some [b]date[/b] binaries in some (c)ESXi builds lack the [b]%j[/b] (Julian day) modifier (why is a conumdrum to us). Try this instead:

./xsibackup --replica=cbt "VMs(vmname)" "root@192.168.1.1:22:/vmdks/replicas/$(( $(date +%s)/86400%5 ))"

Offline

Board footer