Strange periodic problem

Paul Schmehl pschmehl_lists at
Tue Oct 24 05:10:50 UTC 2017

--On October 23, 2017 at 11:02:54 PM -0500 Adam Vande More 
<amvandemore at> wrote:

> On Mon, Oct 23, 2017 at 9:51 PM, Paul Schmehl <pschmehl_lists at>
> wrote:
> I wrote a script to do database backups. It worked well, so I copied it
> to another server. I had to alter it, because the db was too big to send
> through email, so it creates the backup, removes the previous days and
> then sends email to me notifying me that it ran. Except, it doesn't work.
> And I have no idea why.
> The periodic script is executable.
># ls -lsa /etc/periodic/daily/220.dbbackup
> 2 -rwxr-xr-x  1 root  wheel  37 Oct 19 12:31
> /etc/periodic/daily/220.dbbackup
> The script calls sh to run the actual script.
># cat /etc/periodic/daily/220.dbbackup
># !/bin/sh
> /usr/local/bin/
> Periodic.conf enables the script.
># grep dbbackup /etc/periodic.conf
> daily_dbbackup_enable="YES"
> The script itself is executable.
># ls -lsa /usr/local/bin/
> 2 -rwxr-xr-x  1 root  wheel  446 Oct 11 23:40
> /usr/local/bin/
> The script runs manually, and I get the email.
># /usr/local/bin/
> rm: /usr/home/pauls/102217.alldb.sql: No such file or directory
> (The previous backup doesn't exist, because the script isn't running
> daily.)
> What have I missed?
> Does the cron log indicate entry ran?

No. But that was a really good question, because now that I look at it 
*none* of the periodic scripts are running. Strange.

Paul Schmehl, Retired
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell

More information about the freebsd-questions mailing list