dumpsql.sh 266 B

12345678
  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 ouatterrir-mysql-1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" ouatterrir' > "./ressources/ouatterrir-${DATE}-local.sql"