LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 05: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, 11:42 AM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,186

Rep: Reputation: 512Reputation: 512Reputation: 512Reputation: 512Reputation: 512Reputation: 512
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:42 AM
nothing seems to run from cron cbannister Linux - Newbie 8 04-08-2008 03:09 PM
Cron wont run my shell script shelb Linux - Desktop 4 05-27-2007 10:55 PM
Cron restart script wont work! ThaHabbis Linux - General 3 03-16-2007 05:38 AM
Trying to run photoshop in wine. Install, but wont run. bruno buys Linux - Software 14 07-15-2004 05:30 PM


All times are GMT -5. The time now is 06:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration