docker-mysql-cron-backup/restore.sh
2017-04-08 17:57:23 +02:00

7 lines
205 B
Bash

#!/bin/bash
echo "=> Restore database from $1"
if mysql -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" < "$1" ;then
echo "=> Restore succeeded"
else
echo "=> Restore failed"
fi