#1 2018-08-16 10:24:55

Evgeny
Member
Registered: 2018-08-16
Posts: 12

Can't run any schedule job

Hello everybody! :-) Need some help - can't understand how to create and run schedule job in current version. Please look:

cat /vmfs/volumes/datastore1/xsi-dir/jobs/001
# This is a backup job file example. It starts with the path to your
# xsibackup file and ends with the redirection to the log file. Please
# do make sure that you keep first and last lines, changing paths to
# match your working environment.

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \

--backup-point="/vmfs/volumes/datastore1/vmbackup" \
--backup-type=Custom \
--backup-vms="testvm" \
--backup-how=Hot \
--date-dir=yes \

--use-smtp=1 \
--mail-to=user12@domain.ru \
--backup-id=001 \
--description="XSITools backup of production VMs" \


--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

So I found file root-crontab:

cat /vmfs/volumes/datastore1/xsi-dir/conf/root-crontab
# This crontab belongs to the root user, thus it starts by root-
# Add cron jobs to this file in the classic crond Linux way.
# This is an example of a backup job being run everyday at 2:00 a.m.
# change according to your needs and run ./xsibackup --update-cron
# min hour day mon dow command
09 10 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/001"

In my case it should run every day at 10:09 UTC but it doesn't work. And I don't see any entries to /vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log Why?

P.S. Already checked /conf/smtpsrvs - it works.

Offline

#2 2018-08-16 18:16:33

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

Re: Can't run any schedule job

Please, follow this troubleshooting guide. ESXi's cron can be picky to configure, nevertheless once you have set it up it won't fail, do not worry about that.

https://33hops.com/xsibackup-cron-troubleshooting.html

Offline

Board footer