<div dir="ltr"><div dir="ltr">I know that crontab -r removes the user's crontab, but what's more likely (based on your content) is that a new version of cron was installed -- and that process somehow overwrote the existing crontab with what looks like a default version.<div><br></div><div>I have a line in my crontab that does a periodic save:</div><div><br></div><div><div>#  2018-1121: 1533: Save the current crontab for later backup</div><div>36   8,15   *   *   *   crontab -l >/home/web/crontab.latest</div></div><div><br></div><div>I then use rsync to back that file (and others) up to a safe place.</div><div><br></div><div>Alex</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 9, 2019 at 11:45 AM Darryl Moore via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">so I have about 100 servers running 16.04 spread over North America.<br>
<br>
Today it became apparent that the root user cron script was deleted on <br>
all 100 of them. The script is at /var/spool/cron/crontab/root and <br>
everything I had has been deleted and replaced with<br>
<br>
# DO NOT EDIT THIS FILE - edit the master and reinstall.<br>
# (- installed on Fri Dec 28 08:18:31 2018)<br>
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)<br>
<br>
crontabs were all originally installed using the crontab executable. <br>
when I redo it the same way I get the proper crontab file but with this <br>
above header added. This was never the case before. I do not have <br>
automatic updates turned on on any of my machines. The date stamp in <br>
this header is within a few seconds of the above on all my machines. I <br>
also have a few machines running Armbian, and they are exactly the same.<br>
<br>
This is a major F*up for me and I have no idea how it happened. Has <br>
anybody else had similar experiences? I'd love to know.<br>
<br>
regards,<br>
darryl<br>
---<br>
Talk Mailing List<br>
<a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
<a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/listinfo/talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2">Alex Beamish</font></div><div dir="ltr"><font size="2"><br></font></div><div dir="ltr"><font size="2">Software Developer / <span style="background-color:rgb(246,246,246);color:rgb(51,51,51);font-family:helvetica,freesans,"liberation sans",helmet,arial,sans-serif"><a href="https://ca.linkedin.com/in/alex-beamish-5111ba3" target="_blank">https://ca.linkedin.com/in/alex-beamish-5111ba3</a></span><br></font></div><div><font size="2">Speaker Wrangler / Toronto Perlmongers / <a href="http://to.pm.org/" target="_blank">http://to.pm.org/</a></font></div><div dir="ltr"><font size="2">Baritone, Operations Manager / Toronto Northern Lights, 2013 Champions / <a href="http://www.northernlightschorus.com" target="_blank">www.northernlightschorus.com</a></font></div><div dir="ltr"><font size="2">Certified Contest Administrator / Barbershop Harmony Society / <a href="http://www.barbershop.org" target="_blank">www.barbershop.org</a></font></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>