SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Cron Job Failing
Author Message
Post Cron Job Failing 
David Rasche wrote:
I am stuck and really need help. I have posted this question before in
a previous string of email, but I have no resolution to the problem.
I recently upgraded a server to Ubuntu 7.04 (used to be Debian). My
rsnapshot script works fine from the command line, but it fails during
cron. It just fails with no warning and no error messages. Anyone have
any clue?


What is the output of `crontab -l`? If the line invoking your rsnapshot
script ends with "2>&1" you won't receive an email upon error.

brian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cron Job Failing 
On 8/9/07, David Rasche <drasche < at > gmail.com> wrote:
Here is the output. I don't have email set up on this machine, I
thought all of the errors would be sent to a log file. In fact, I
don't know where or how to set that up. I'll have to do that if this
is the only way to get cron errors.

Here is my cron file:

0 */4 * * * /usr/bin/rsnapshot hourly
45 23 * * * /usr/bin/rsnapshot daily
30 23 * * 1 /usr/bin/rsnapshot weekly
15 23 1 * * /usr/bin/rsnapshot monthly

If you were to append the following to each line you'd get the output
in "rsnapshot.log" and the errors in "rsnapshot.err":

/var/log/rsnapshot.log 2>/var/log/rsnapshot.err

Use ">>" instead of ">" if you want to append to the logs rather than
overwrite at each run.

--
Please keep list traffic on the list.

Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB