Hi Thomas
The absolute path was the answer.
Your explanation has added to my limited knowledge :-)
Thanks
Clive
On 19/09/16 23:04, Thomas Schmitt wrote:
Hi,
Clive Menzies wrote:
rsync_opts="-av --exclude-from=exclude_list --delete --delete-excluded"
exclude_list=/root/uhuru_b
Hi,
Clive Menzies wrote:
> rsync_opts="-av --exclude-from=exclude_list --delete --delete-excluded"
> exclude_list=/root/uhuru_backup/exclude_list
> rsync: failed to open exclude file exclude_list: No such file or directory (2)
The decisive difference between dialog and cron could be t
On 19/09/16 22:10, Clive Menzies wrote:
It didn't find the exclude_list I created. I modified the script to
point to it but clearly the syntax is not right
# Good rsync options for uhuru_backups.
rsync_opts="-av --exclude-from=exclude_list --delete
--delete-excluded"
# exclude list locat
On 19/09/16 12:31, Thomas Schmitt wrote:
The classic remedy would be to set the missing variables inside the
cronjob script.
/root/uhuru_backup/uhuru.daily.sh
Consider to put some "echo" commands into the script and direct them to
a log file:
log_file=/tmp/uhuru_daily_sh.log
...
Hi,
> The daily backup script works fine when run manually as sudo but doesn't
> complete when run as a root cronjob.
The classic reason for this is difference in environment variables.
I.e. the cron job could die from a non set variable.
The classic remedy would be to set the missing variables
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.
$rsyn
6 matches
Mail list logo