docker-caravane/bin/dumpsql.sh

9 lines
266 B
Bash
Raw Normal View History

2024-06-18 15:03:29 +02:00
#!/bin/bash
DATE=`date '+%Y-%m-%d_%H%M%S'`
#SCRIPT_D=dirname $0
#export $(cat ${SCRIPT_D}/../.env | grep -v ^# | xargs)
docker exec ouatterrir-mysql-1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" ouatterrir' > "./ressources/ouatterrir-${DATE}-local.sql"