#!/bin/sh
##variables mysql
DATE="$(date +%y%m%d)"
HOST_SQL=""
DATABASE=""
USR_SQL=""
PASS_SQL=""
NAMEDB=''$DATE'.sql'
##Volcado de Base de datos
#mysqldump -h $HOST_SQL -u $USR_SQL -p$PASS_SQL $DATABASE > $NAMEDB
##Restaurar Base de datos
#mysql -h $HOST_SQL --verbose --user=$USR_SQL --password=$PASS_SQL $DATABASE < $NAMEDB
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.