dumpsql.sh 414 B

123456789
  1. #!/bin/bash
  2. DATE=`date '+%Y-%m-%d_%H%M%S'`
  3. #SCRIPT_D=dirname $0
  4. #export $(cat ${SCRIPT_D}/../.env | grep -v ^# | xargs)
  5. docker exec materiod8_mysql_1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" materio_d8' > "./ressources/materio_d8-${DATE}-local.sql"
  6. docker exec materiod8_mysql-legacy_1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" materio_d7' > "./ressources/materio_d7-${DATE}-local.sql"