<div dir="ltr"><div class="gmail_default" style="font-size:small">crond is running and the backups succeed, it&#39;s just that they run every day instead of only on a Sunday.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I edited the file direct as root and killed and restarted crond after doing that. It seems esxi does not have a crontab command.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">syslog shows that it ran, but no clue as to why it ran every day instead of only on Sunday:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">2016-05-30T01:00:01Z crond[1191986]: crond: USER root pid 1360004 cmd /sbin/sh /vmfs/volumes/datastore1/util/ghettoVCB-master/ghettoVCB.sh -f /vmfs/volumes/datastore1/util/ghettoVCB-master/vms_to_backup</div><div class="gmail_default">2016-05-31T01:00:01Z crond[1191986]: crond: USER root pid 1427626 cmd /sbin/sh /vmfs/volumes/datastore1/util/ghettoVCB-master/ghettoVCB.sh -f /vmfs/volumes/datastore1/util/ghettoVCB-master/vms_to_backup</div><div class="gmail_default"><br></div><div class="gmail_default">I think Phil may be onto something with esxi not using 7=Sunday. I&#39;ll play around with that a bit.</div><div class="gmail_default"><br></div><div class="gmail_default">ed</div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div><div><br></div><div><br><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">_________________________________________ </span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:11pt">Edward O. Holcroft</b><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">IT Operations Manager</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:11pt">Madsen, Kneppers &amp; Associates, Inc.</b><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">Construction Consultants &amp; Engineers </span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">11695 Johns Creek Parkway, Suite 250</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">Johns Creek, GA 30097</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">O</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  770.446.9606  |  </span><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">F</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  770.446.9612  |  </span><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">C</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  770.630.0949  |  <a href="mailto:eholcroft@mkainc.com" target="_blank">eholcroft@mkainc.com</a></span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><a href="http://www.mkainc.com" target="_blank">www.mkainc.com</a> </span><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 31, 2016 at 9:30 AM, Lightner, Jeffrey <span dir="ltr">&lt;<a href="mailto:JLightner@dsservices.com" target="_blank">JLightner@dsservices.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you verified the cron daemon (crond) is running?<br>
<br>
Did you do the edit with crontab -e as the specific user (or crontab -e -u &lt;user&gt; as root for non-root user) or did you direct edit the crontab file for the specific user?   If the latter you have to bounce crond for the change to be recognized.<br>
<br>
Did you look at the cron log (/var/log/cron usually) to see if it gave any information?<br>
<br>
Did you look at the user&#39;s mail to see if cron sent any email?  It usually will if cron jobs are attempted but have non-zero exit.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a> [mailto:<a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a>] On Behalf Of Phil Turmel<br>
Sent: Tuesday, May 31, 2016 9:17 AM<br>
To: <a href="mailto:ale@ale.org">ale@ale.org</a><br>
Subject: Re: [ale] Crontab on ESXi<br>
<br>
On 05/31/2016 08:22 AM, Edward Holcroft wrote:<br>
&gt; All,<br>
&gt;<br>
&gt; I have a crontab entry on EXI v6:<br>
&gt;<br>
&gt; 0    1    *   *   7   /sbin/sh<br>
&gt; /vmfs/volumes/datastore1/util/ghettoVCB-master/ghettoVCB.sh -f<br>
&gt; /vmfs/volumes/datastore1/util/ghettoVCB-master/vms_to_backup<br>
&gt;<br>
&gt; I expect the command to run once a week on a Sunday, but it runs every<br>
&gt; day. The syntax seems correct. Any ideas what may be going on here?<br>
<br>
Is there any chance ESXi doesn&#39;t conform to 7 = Sunday?  Have you tried<br>
&quot;0 1 * * 0&quot; ?<br>
<br>
<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br></div>

<br>
<span style="font-family:arial"><font size="2">MADSEN, KNEPPERS &amp; ASSOCIATES USA, MKA Canada Inc. WARNING/CONFIDENTIALITY NOTICE: This message may be confidential and/or privileged. If you are not the intended recipient, please notify the sender immediately then delete it - you should not copy or use it for any purpose or disclose its content to any other person. Internet communications are not secure. You should scan this message and any attachments for viruses. Any unauthorized use or interception of this e-mail is illegal.</font></span>