> 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 inside the
Consider to put some "echo" commands into the script and direct them to
a log file:
echo "Currently at: ..." >>$log_file
This should give you an idea what part of the script causes the premature
Have a nice day :)