VMware ghettoVCB script and crontab won't start?

Good day! Configured the ghettoVCB script to copy virtual machines to two Hyper (first - ESXi 5.5, the second - ESXi 6.7). Here are the contents of 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 runs up the Virt. if to launch manually - all works, but why is he given a time machine then he does not fulfill the assignment? What does he lack? Should be on Saturday at 18 o'clock on his own time to start a backup.
March 20th 20 at 11:19
2 answers
March 20th 20 at 11:21
man 5 crontab:
The time and date fields are:

field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
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".

The correct way would be:
#min hour day mon dow command
0 18 * * 6 ghettoVCB.sh
Thank you, Paul, I will try to correct. And how forcibly do the jobs run crontab? What team? To verify that it worked. - colton_Kirli commented on March 20th 20 at 11:24
@shaun.Morisset, in this sense cron job to run on schedule rather than on demand. To check you can temporarily change the schedule. - Afto commented on March 20th 20 at 11:27
@Melisa15, okay, I'll check then. - colton_Kirli commented on March 20th 20 at 11:30
@Melisa15, did not help the line in crontab
#min hour day mon dow command
0 18 * * 6 ghettoVCB.sh
the script doesn't start, something he lacks... - colton_Kirli commented on March 20th 20 at 11:33
@shaun.Morisset, show all your string. - Afto commented on March 20th 20 at 11:36
@Melisa15,
cat /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 * * * * /sbin/hostd-probe ++group=host/vim/vmvisor/hostd-probe
0 18 * * 6 /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/ghettoVCB.sh -a-g /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/ghettoVCB.conf -l /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/log
- colton_Kirli commented on March 20th 20 at 11:39
@shaun.Morisset, if you manually run this line, all works correctly? Try this (for testing you can put "0 18 * * *"):
0 18 * * 6 /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/ghettoVCB.sh -a-g /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/ghettoVCB.conf > /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/log

where /vmfs/volumes/58845f13-6a805d68-c33a-00259084eff0/ghettoscript/ghettoVCB/log — file available for writing. And don't forget after changing the crontab:
~ # kill $(cat /var/run/crond.pid)
~ # crond
- Afto commented on March 20th 20 at 11:42
@Melisa15, Yes, if you manually run a string from the console - all mined rules. Adjusted line, so I assume that every day will happen in the backup of 18 hours? - colton_Kirli commented on March 20th 20 at 11:45
@Melisa15, Yes, the script works, i.e. the system time at 18:00 daily backups start, with that understood, it remains to understand why the number "6" on the end, he did not start Saturday... - colton_Kirli commented on March 20th 20 at 11:48
@shaun.Morisset, change to 6, it should work. - Afto commented on March 20th 20 at 11:51
@Melisa15, changed again at 6, made
~ # kill $(cat /var/run/crond.pid)
~ # crond

Let's work it off on Saturday - colton_Kirli commented on March 20th 20 at 11:54
March 20th 20 at 11:23
And how did ?
Yes, it worked fine. - colton_Kirli commented on March 20th 20 at 11:26

Find more questions by tags LinuxBacking upVMware ESXi