Hi ,
I've created a shell script to take backup of my db and scheduled it through cron.
However the scheduled cron job is not taking any backup.
When I execute the script manually using the sudo user it is giving the required result.
Also I've mentioned the complete path for mysqldump in the script.
Could someone please help on this.
I've created a shell script to take backup of my db and scheduled it through cron.
However the scheduled cron job is not taking any backup.
When I execute the script manually using the sudo user it is giving the required result.
Also I've mentioned the complete path for mysqldump in the script.
Code:
#!/bin/sh
/usr/local/bin/mysqldump --defaults-extra-file=$MY_CNF --defaults-group-suffix=*** user=*** db> ${BACKUP_DIR}/backup-file_${DATE}.sql
Could someone please help on this.