Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help
Given, all env variables are set up correctly, it most likely indicates that the cron line:
the created backup file only contains:
Given, all env variables are set up correctly, it most likely indicates that the cron line:
doesn't recognize the env variables.
Corresponding stack overflow discussion: https://stackoverflow.com/questions/2229825/where-can-i-set-environment-variables-that-crontab-will-use#10657111