#!/bin/bash DATE=`date '+%Y-%m-%d %H:%M:%S'` #SCRIPT_D=dirname $0 #export $(cat ${SCRIPT_D}/../.env | grep -v ^# | xargs) sudo docker exec edlpd8_mysql_1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" edlp_d8' > "./edlp_d8-${DATE}.sql"