Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
rsyncbackup wont run over cron

I`m using rsyncbackup,, 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
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,612

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



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 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:08 PM.

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