I have a backup script in order to backup a MySQL-database to my backup server.
I run rsnapshot from cron at defined intervals. This works correctly.
Rsnapshot calls a script (backup_script parameter) which calls mysql_dump.
The script works perfectly from the command line. Rsnapshot does not return any errors when i run it from CLI either (rsnapshot hourly)
When rsnapshot is run from cron I get an error message delivered to the email which states
The line in the backup script is as follows
I used to have
, but that returned errors aswell.
My cron enviroment sets the shell to /bin/sh.
As the task runs quite frequently my inbox is filling up. I would greatly appreciate any help. Should it be necessary I can post my scripts once I have access to the machine in question.
I run rsnapshot from cron at defined intervals. This works correctly.
Rsnapshot calls a script (backup_script parameter) which calls mysql_dump.
The script works perfectly from the command line. Rsnapshot does not return any errors when i run it from CLI either (rsnapshot hourly)
When rsnapshot is run from cron I get an error message delivered to the email which states
Code:
--host host.domain.tld not found
The line in the backup script is as follows
Code:
$mysqldump --host $host.$domain ...additional parameters > $GZIP
I used to have
Code:
--host "$host.$domain"
My cron enviroment sets the shell to /bin/sh.
As the task runs quite frequently my inbox is filling up. I would greatly appreciate any help. Should it be necessary I can post my scripts once I have access to the machine in question.