<p dir="ltr">BTW, AutoMySQLBackup works scheduled...</p>
<p dir="ltr"><a href="http://sourceforge.net/projects/automysqlbackup/">http://sourceforge.net/projects/automysqlbackup/</a></p>
<p dir="ltr">cheers,<br>
G-</p>
<div class="gmail_quote">On Jun 11, 2013 2:22 PM, "Michael Glaske" <<a href="mailto:mglaske@gmail.com">mglaske@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Prob. version semantics.. either way, my.cnf is the default location it uses.. And I'm pretty sure that if you my.cnf is 700 for root, nobody else can run mysql commands against it other than root.  But older versions of mysql may be more lax on security.<div>


<br></div><div>Other way would be to write a small script that pulls in the username/password details from a config files that's 700 for root, and applies them, then run that under cron. (just source a file with 'username=xxx\npassword=xxxx').</div>


<div><br></div><div>:)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 11, 2013 at 11:44 AM, Eric Beversluis <span dir="ltr"><<a href="mailto:ebever@researchintegration.org" target="_blank">ebever@researchintegration.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">mysqldump tells me '--defaults-file' is not a known option. And I don't<br>
see it in the mysqldump man file. Actually, once I've added the info to<br>
my.cnf, this seems to run ok:<br>
   mysqldump --all-databases > home/mundane/mysql.sql<br>
I.e., without any '--defaults-file' option.<br>
<div><br>
On Tue, 2013-06-11 at 10:00 -0400, Michael Glaske wrote:<br>
</div><div><div>> Pass it a config file that has the password in it, make the file read<br>
> only root.<br>
><br>
><br>
> mysqldump --defaults-file=/etc/mysql/my.cnf<br>
><br>
><br>
> put in my.cnf  (any of these is optional)<br>
> [mysqldump]<br>
> user = username<br>
> password = password<br>
> socket =<br>
> port =<br>
> host =<br>
><br>
><br>
> On Tue, Jun 11, 2013 at 9:44 AM, Eric Beversluis<br>
> <<a href="mailto:ebever@researchintegration.org" target="_blank">ebever@researchintegration.org</a>> wrote:<br>
>         How can I set a cron job to do mysqldump without hardcoding<br>
>         the mysql<br>
>         root password into the cron command? (It looks like anyone can<br>
>         read the<br>
>         various cron files.)<br>
><br>
>         _______________________________________________<br>
>         grlug mailing list<br>
>         <a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
>         <a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
><br>
><br>
> _______________________________________________<br>
> grlug mailing list<br>
> <a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
> <a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
<br>
<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br></blockquote></div>