N
N
N1k1nv2019-05-01 07:14:55
linux
N1k1nv, 2019-05-01 07:14:55

WMWare ghettoVCB script and crontab won't start?

Good afternoon! I set up the ghettoVCB script to copy virtual machines on two hypers (the first is ESXi 5.5, the second is ESXi 6.7). Here is the contents of the file /var/spool/cron/crontabs/root

#min hour day mon dow command
1    1    *   *   *   /sbin/tmpwatch.py
1    *    *   *   *   /sbin/auto-backup.sh
0    *    *   *   *   /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5  *    *   *   *   /bin/hostd-probe.sh ++group=host/vim/vmvisor/hostd-probe/s tats/sh
00   1    *   *   *   localcli storage core device purge
0   18   0   0   6    /vmfs/volumes/505739e6-46f6c0a2-1675-002590d6d375/ghettoVCB/ghettoVCB-master/ghettoVCB.sh -f ./vmlist -g ./ghettoVCB.conf -l ./log


The bottom line just starts copying Wirth. machines, if you start it manually - everything works, but why doesn’t it automatically process the task itself at the specified time? What does he lack? The backup should start on Saturday at 18 o'clock in its own time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Mezhuev, 2019-05-01
@mezhuev

man 5 crontab:

The time and date fields are:
field allowed values
​​----- --------------
minute 0-59
hour 0-23
day of week 0-7 (0 or 7 is Sunday, or use names)
A ​​field may contain an asterisk (*), which always stands for "first-last".

It will be correct like this:
#min hour day mon dow command
0    18   *   *   6   ghettoVCB.sh

M
ML, 2019-10-15
@crushml

And how did it work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question