#1 2018-03-06 15:08:18

kcjeffro
Member
Registered: 2018-03-06
Posts: 3

Apparent cron Parsing Error(s)?

I'm running XSIBACKUP-PRO 10.3.1 on ESXi 6.5.0 Update 1 (Build 7388607).



This works as expected from the command line and the backup VM boots and runs without issue:

[root@ESX:~] date
Tue Mar  6 14:53:27 UTC 2018

[root@ESX:~] "/vmfs/volumes/datastore1/xsi-dir/xsibackup" --time="Tue 14:53" --use-smtp=1 --backup-type=custom  --backup-point="10.22.22.22:22:/vmfs/volumes/datastore1"  --backup-vms=Unifi  --mail-to=me@example.com --backup-prog=onediff --certify-backup=no


Cron jobs fire as expected.



However, when the cron job fires, xsibackup throws errors like the following:

sh: rsync: unknown operand
Backup user is: root
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The --backup-point string is a mandatory value
You have to set the variable --backup-type to some of the values described in the help
E-mail Warnings
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The e-mail report will not be sent because of the followig reasons:
The --mail-from string has not been set
The --smtp-srv string has not been set
The --smtp-port string has not been set
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error JOBSKIP1: the backup job will be skipped because some mandatory values are missing

Any ideas?

Offline

#2 2018-03-06 19:55:44

kcjeffro
Member
Registered: 2018-03-06
Posts: 3

Re: Apparent cron Parsing Error(s)?

Even more weirdly, if I run the xsibackup-cron file (e.g., `/vmfs/volumes/datastore1/xsi-dir/xsibackup-cron`), things work. 

The issue only occurs when the xsibackup-cron file is run via cron.

Offline

#3 2018-03-07 02:52:33

kcjeffro
Member
Registered: 2018-03-06
Posts: 3

Re: Apparent cron Parsing Error(s)?

This was a combination of issues:

  • My cron config was jacked, my fault.

  • cron wasn't running.

  • I was using the incorrect syntax on --watch.

Offline

#4 2018-03-08 15:51:29

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: Apparent cron Parsing Error(s)?

You did our job ;-)
Remember that you can contact support to open a case, should you need it.

Offline

Board footer