mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-19 00:32:34 +01:00
8 lines
196 B
Bash
8 lines
196 B
Bash
|
#!/bin/bash
|
||
|
echo "=> Restore database from \$1"
|
||
|
if mysql -h $MYSQL_HOST -P $MYSQL_POR -u $MYSQL_USER -p$MYSQL_PASS < \$1 ;then
|
||
|
echo "=> Restore succeeded"
|
||
|
else
|
||
|
echo "=> Restore failed"
|
||
|
fi
|