[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Crear script en shell



Claro que es posible:

fecha=`date +%d-%m-%y_%H:%M:%S`
mysqldump -u am -pam amedirh > backup_$fecha.sql

te quedaria el nombre del archivo como:
backup_30-05-07_12:12:16.sql


Saludos!


--
Lenin Hernández
2.6.18 on Debian Lenny
CUCLUG.: "no hay nada mejor, que hacer lo que realmente te gusta".
Linus Tordvalds.: "If it compiles, it is good, if it boots up it is perfect".

Reply to: