Results 1 to 3 of 3

Thread: rdiff-backup command not executed by cron

  1. #1
    Join Date
    Jan 2007
    Location
    /India/Auroville/home
    Beans
    367
    Distro
    Xubuntu 13.10 Saucy Salamander

    rdiff-backup command not executed by cron

    I have a problem with a backup script on a Hardy 32 thin-client-server with rdiff-backup 1.1.5 as well as 1.1.15.

    A simple script like this
    Code:
    #!/bin/bash
    rdiff-backup /home/user/directory /media/storage/backup
    script is on chmod 775 or even 777
    in crontab my entry is
    Code:
    01 12 * * * /home/backupscript
    now: if I execute the script manually either as a user or as root it works perfectly. cron executes the script but doesn't execute the rdiff-backup command

    if i run the same set-up on a single desktop or server things work.
    on the thin-client-server it fails.

    does anybody have an idea what could cause this problem? Any help is appreciated
    Don't forget to thank; more points when you want to go to heaven or less karma if you decide for reincarnation. Mark threads solved when they are ...

  2. #2
    Join Date
    Feb 2005
    Location
    be
    Beans
    35

    Re: rdiff-backup command not executed by cron

    Hi, I exactly have the same problem at the moment.
    None of my cron jobs are executed.

    Here is my crontab for root:

    Code:
    aurels@malisart:~$ sudo crontab -l
    # m h  dom mon dow   command
    57 13 * * * root echo "42" > /home/aurels/test.txt
    0 3  * * *   root    /srv/data/backup-script
    Cron is running:

    Code:
    aurels@malisart:~$ ps aux | grep cron
    root      2687  0.0  0.3   2244   892 ?        Ss   13:55   0:00 /usr/sbin/cron
    aurels    2707  0.0  0.1   1680   516 pts/0    R+   13:58   0:00 grep cron
    Thanks.

  3. #3
    Join Date
    Sep 2007
    Beans
    70

    Re: rdiff-backup command not executed by cron

    Quote Originally Posted by be4truth View Post
    A simple script like this
    Code:
    #!/bin/bash
    rdiff-backup /home/user/directory /media/storage/backup
    script is on chmod 775 or even 777
    Hi,

    It may be a $PATH related issue.

    You should change #!/bin/bash to #!/bin/sh, for portability purposes.

    Then, try changing rdiff-backup to /usr/bin/rdiff-backup

    Hope this still helps,
    cheers,

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •