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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2019-02-26 18:17:30

newmember
Member
Registered: 2018-10-15
Posts: 34

crontab not working

I have removed the cron and added it back in with the xsibackup gui.
I have run the command from the command line directly and it works.
my crontab below.

Thoughts please?



[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir]  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  *    *   *   *   /bin/hostd-probe.sh ++group=host/vim/vmvisor/hostd-probe/stats/sh
00   1    *   *   *   localcli storage core device purge
0 8 * * * "/vmfs/volumes/datastore1/xsi-dir/jobs/038" # Added by XSIBackup

Offline

#2 2019-02-26 19:36:24

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

Re: crontab not working

What is the issue?
The cron is not being triggered?.
Please, follow the procedure in this post to debug your cron functioning, its detailed and explained step by step.
(c)XSIBackup Classic: troubleshooting the (c)ESXi cron

Offline

#3 2019-02-26 20:38:31

newmember
Member
Registered: 2018-10-15
Posts: 34

Re: crontab not working

Sorry

Use the crontab does not trigger automatically

Thanks

Offline

#4 2019-02-26 21:07:03

newmember
Member
Registered: 2018-10-15
Posts: 34

Re: crontab not working

1.
/vmfs/volumes/datastore1/xsi-dir/jobs/038

this command starts the backup process


2.
[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir] for p in $(ps -c | grep -v grep | grep 'busybox crond' | awk '{print $1}'); \
> do kill -9 $p;done; \
> /usr/lib/vmware/busybox/bin/busybox crond; \
> ps -c | grep -v grep | grep 'busybox crond'
2271343  2271343  busybox                                  /usr/lib/vmware/busybox/bin/busybox crond



3.
[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir] ls -al /var/spool/cron/crontabs/root
-rwx------    1 root     root           399 Feb 21 00:23 /var/spool/cron/crontabs/root

[root@esxi-38:/vmfs/volumes/5bc410e3-ae8c84a6-07cf-5cf3fc1d7030/xsi-dir] tail -f /tmp/my-cron-test.txt
Tue Feb 26 20:56:01 UTC 2019
Tue Feb 26 20:57:01 UTC 2019
Tue Feb 26 20:58:01 UTC 2019

Offline

#5 2019-02-27 08:20:57

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

Re: crontab not working

Well, your cron is working and your job is working too, you are almost there. You must be overlooking something, may be some permission issue.

We are sorry but we are not getting what you mean here: "Use the crontab does not trigger automatically"

Offline

#6 2019-02-28 19:42:15

newmember
Member
Registered: 2018-10-15
Posts: 34

Re: crontab not working

"Use the crontab does not trigger automatically"

Apologies,

cron is not triggering the xsibackup process automatically

Offline

#7 2019-03-02 16:29:22

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

Re: crontab not working

Well, we don't know how we can help you any further. You do have a working cron. You have posted above the output of a working cron schedule adding the date to your test file /tmp/my-cron-test.txt. Just change the command adding the file by your backup job and tweak the hour to your desired backup time.

Contact support if you still need some help with this.

Offline

Board footer