<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hola lista:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tengo el siguiente dilema necesito hacer un dump
automatico con el crontab</FONT></DIV>
<DIV><FONT face=Arial size=2>perono se como instruducir el pasword en ese
script, espero que me puedan ayudar </FONT></DIV>
<DIV><FONT face=Arial size=2>yo le he intentado de la siguiente
manera</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>DAT=`date`<BR>DIRORIG="/root/mysqlbackup/"<BR>USER="root"<BR>DEST=<A
href="mailto:quantum@domino.com">quantum@domino.com</A><BR>DIRDEST="/root/mysqlbackup/"<BR>PARAM="-v
-r -p -g -o --rsh=ssh --stats"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>#verificar destino</DIV>
<DIV> </DIV>
<DIV>PG=`ping -S 1 -c 1 $DEST > /dev/null;echo $?`</DIV>
<DIV> </DIV>
<DIV>if [ $PG -eq 0 ]; then</DIV>
<DIV> </DIV>
<DIV>mysqldump -u root -p 'PASSWORD' --all-databases --add-drop-table >>
/root/mysqlbackup/mysqldump.bak </DIV>
<DIV> </DIV>
<DIV>rsync $PARAM $DIRORIG <A
href="mailto:$USER@$DEST:$DIRDEST">$USER@$DEST:$DIRDEST</A> >>
/var/log/sincronizar/sinmysqldump"$DAT"</DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>