Because the mysqldump shows up in the process list, an intruder could watch the processes while our crons run, and steal our database passwords. We should put the username and password into a MySQL defaults file and point to it in the command line that's run.
Because the mysqldump shows up in the process list, an intruder could watch the processes while our crons run, and steal our database passwords. We should put the username and password into a MySQL defaults file and point to it in the command line that's run.
mysqldump --defaults-extra-file=/path/to/file.cnf --opt $DBNAME > $BACKUPFILE