2017-03-27 21:16:15 +02:00
|
|
|
#!/bin/bash
|
2017-04-08 17:57:23 +02:00
|
|
|
echo "=> Restore database from $1"
|
|
|
|
if mysql -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" < "$1" ;then
|
2017-03-27 21:16:15 +02:00
|
|
|
echo "=> Restore succeeded"
|
|
|
|
else
|
|
|
|
echo "=> Restore failed"
|
|
|
|
fi
|