Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #172440

Crontab doesn't complete a script - was Re: Longstanding rsync script no longer excludes

From Clive Menzies <clive@clivemenzies.co.uk>
Newsgroups linux.debian.user
Subject Crontab doesn't complete a script - was Re: Longstanding rsync script no longer excludes
Date 2016-09-19 13:20 +0200
Message-ID <sj4M9-4KI-15@gated-at.bofh.it> (permalink)
References <silm2-1qx-27@gated-at.bofh.it> <siqvo-4N4-3@gated-at.bofh.it> <siqvo-4N4-5@gated-at.bofh.it> <siqvn-4N4-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 17/09/16 17:12, Clive Menzies wrote:
> WORKING version:
> # Good rsync options for uhuru_backups.
>     rsync_opts="-av --exclude-from=exclude_list --delete 
> --delete-excluded"
>
> The exclude_list is a file with one excluded directory per line with 
> an asterisk at the end directory name.

      $rsync $rsync_opts $password Uhuru::rsync \
       /root/uhuru_backup/uhuru/home/ > /var/rsync/uhuru.$NOW.log

The daily backup script works fine when run manually as sudo but doesn't 
complete when run as a root cronjob. I know the script starts because it 
creates a log. When successful it gives a list of files copied but when 
run as a cronjob it's blank (0 bytes)

$ sudo crontab -l
20 21 1 * * /root/uhuru_backup/uhuru.monthly.sh > /dev/null
25 21 * * 7 /root/uhuru_backup/uhuru.weekly.sh > /dev/null
30 21 * * * /root/uhuru_backup/uhuru.daily.sh > /dev/null

This should be impossible but I've got the same issue on two backup servers.

Regards

Clive

-- 
Clive Menzies
http://freecriticalthinking.org

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Longstanding rsync script no longer excludes Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-17 12:50 +0200
  Re: Longstanding rsync script no longer excludes Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2016-09-17 14:30 +0200
  Re: Longstanding rsync script no longer excludes - SOLVED Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-17 18:20 +0200
    Crontab doesn't complete a script - was Re: Longstanding rsync script  no longer excludes Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-19 13:20 +0200
      Re: Crontab doesn't complete a script "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-19 13:40 +0200
        Re: Crontab doesn't complete a script Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-19 23:20 +0200
          Re: Crontab doesn't complete a script - SOLVED Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-20 00:00 +0200
          Re: Crontab doesn't complete a script "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-20 00:10 +0200
            Re: Crontab doesn't complete a script Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-20 01:10 +0200

csiph-web