LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2009, 04:32 AM   #1
ulver
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 0
rsyncbackup wont run over cron


I`m using rsyncbackup, http://code.google.com/p/rsync-backup/, as my central backup solution. I`ve configured everything and it works fine when I run it manually, but over some servers it wont run over cron.
I think its a PATH issue so Im asking is there any way to debug this and find out which part of the script wont run?!
 
Old 12-24-2009, 10:42 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Start with looking in /var/log/syslog to see if cron generated an error message.

Did you include the path to perl in the cron job? Did you enter the cron job in /etc/crontab and specified that it should run as root?

Are you calling the script just by the script name (/path/to/script) or are you calling perl explicitely like:
/usr/bin/perl /path/to/your/script
The latter is the correct way.

There is an option to increase verbosity in this script. Use it, and redirect your output to a file in your home directory or the /tmp directory.
/usr/bin/perl /path/to/your/script > /tmp/backup.log

jlinkels
 
  


Reply

Tags
cron, path



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Scheduled Backups With Rsyncbackup On Debian Etch LXer Syndicated Linux News 0 04-13-2008 08:42 AM
nothing seems to run from cron cbannister Linux - Newbie 8 04-08-2008 02:09 PM
Cron wont run my shell script shelb Linux - Desktop 4 05-27-2007 09:55 PM
Cron restart script wont work! ThaHabbis Linux - General 3 03-16-2007 04:38 AM
Trying to run photoshop in wine. Install, but wont run. bruno buys Linux - Software 14 07-15-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration