reoback problems on debian 3.1

Discussion in 'Server Operation' started by Ovidiu, Apr 17, 2007.

  1. Ovidiu

    Ovidiu Active Member

    hello,

    I successfully installed and configured reoback. I made a testrun (manually) and everything worked fine. The backup was made, everything ok.
    Then I noticed that when reoback ran as cronjob it kind of "hung" - the cronjob was set for 3 o'clock and late i nteh evenign I noticed a high CPU load. I checked and found out tar was still running.
    My first idea was that maybe the reason was that I had configured reoback to backup / with just a few exceptions. So I reconfigured and specified each directory separately and did a testrun again. It run fine, a little smoother, basically a full backup took 1 1/2 hours the transfer itsself 30mins... but today I just noticed tar was still running... and reoback.pl and run_reoback.sh are also running.

    So here I am - what can I check, how can I enable some logging to find out why it does not run when used with cron?

    here is my cronjob: 3 3 * * * /etc/reoback/run_reoback.sh | mail -s "reoback" postmaster@mydomain
     
  2. falko

    falko Super Moderator

    What's in /etc/reoback/run_reoback.sh? Did you use full paths for all commands in that script? The PATH variable might be different in a cron job and on the shell.
     
  3. Ovidiu

    Ovidiu Active Member

    basically this is its content, except for the shebang...

    I started the manual run like this: reoback.pl /etc/reoback/settings.conf ... maybe I should change the run_reoback.sh from full path to this ?
     
  4. falko

    falko Super Moderator

    You can try and add a PATH variable at the beginning of the run_reoback.sh script (in line 2, right after the shebang), e.g.

    Code:
    PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
     
  5. Ovidiu

    Ovidiu Active Member

    the run_reoback.sh look like this now:

    I also re-enabled the cronjob so I will report back tomorrow with the result of this modification.
     
  6. Ovidiu

    Ovidiu Active Member

    first feedback:

    second one :)

    looks like I need to include all the paths falko quoted above, right?
     
  7. falko

    falko Super Moderator

    Yes, correct.
     
  8. Ovidiu

    Ovidiu Active Member

    no luck. the cron job started this morning at 3:00 am and is still running.
     
  9. falko

    falko Super Moderator

    Any error messages?
    What exactly is in your script now?
     
  10. Ovidiu

    Ovidiu Active Member

    I put the whole path into it like you quoted above. there were no error messages, as I had to kill the still runnign scripts. they were consuming too much cpu-time

    you also have details regarding this in a PM
     
  11. Ovidiu

    Ovidiu Active Member

    the tar job and reoback job have now been running for more than 24h and still running, and running.

    I killed both manually and here is an excerpt from the mail I got:

    It seems it never finishes with the var directory which is the biggest one on the server... still if I launch it manually it works just fine and finishes in a few minutes...
     
  12. falko

    falko Super Moderator

    I had this same problem even when running the script manually on your server. I was thinking that maybe it needs a few hours because the /var directory is so big... :confused:
     
  13. Ovidiu

    Ovidiu Active Member

    strange, when I first ran it, it was ok... maybe it has an issue with the following updates? I'll delete its datafile tomorrow, that way it will think its the first backup and will perform a full update, those were always working..
     

Share This Page