docker-vagrantpress/scripts/docker-dbbackup.sh

4 lines
192 B
Bash

#!/bin/bash
echo "Running docker-dbackup.sh"
/usr/bin/mysqldump -u root -p"$MYSQL_ROOT_PASSWORD" "$MYSQL_DATABASE" > /docker-entrypoint-initdb.d/dbbackup.sql
echo "Finished docker-dbackup.sh"