[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]man rsync --------- Some paths on the remote server may require authentication. If so then you will receive a password prompt when you con- nect. You can avoid the password prompt by setting the environment variable RSYNC_PASSWORD to the password you want to use or using the --password-file option. This may be useful when scripting rsync. -------------- Saludos Max On Tuesday 24 February 2004 18:39, Montiel Paredes wrote: > Hola lista: > > Tengo el siguiente dilema necesito hacer un dump automatico con el crontab > perono se como instruducir el pasword en ese script, espero que me puedan > ayudar yo le he intentado de la siguiente manera > > DAT=`date` > DIRORIG="/root/mysqlbackup/" > USER="root" > DEST=quantum en domino com > DIRDEST="/root/mysqlbackup/" > PARAM="-v -r -p -g -o --rsh=ssh --stats" > > > #verificar destino > > PG=`ping -S 1 -c 1 $DEST > /dev/null;echo $?` > > if [ $PG -eq 0 ]; then > > mysqldump -u root -p 'PASSWORD' --all-databases --add-drop-table >> > /root/mysqlbackup/mysqldump.bak > > rsync $PARAM $DIRORIG $USER@$DEST:$DIRDEST >> > /var/log/sincronizar/sinmysqldump"$DAT" -- Linux garaged 2.6.1-mm4 #2 SMP Fri Jan 16 16:06:05 CST 2004 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS/S d- s: a-29 C++(+++) ULAHI+++ P+ L++>+++ E--- W++ N* o-- K- w++++ O- M-- V-- PS+ PE Y-- PGP++ t- 5- X+ R tv++ b+ DI+++ D- G++ e++ h+ r+ z** ------END GEEK CODE BLOCK------ gpg-key: http://garaged.homeip.net/gpg-key.txt _______________________________________________ Ayuda mailing list Ayuda en linux org mx Para salir de la lista: http://mail.linux.org.mx/mailman/listinfo/ayuda/