added bin/dumpsql.sh to git tree
This commit is contained in:
parent
b3be5d393d
commit
54ea4eb61a
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,4 +3,4 @@ public_html_legacy/*
|
||||
drupal7/*
|
||||
log/*
|
||||
*.sql
|
||||
bin
|
||||
bin/syncfiles.sh
|
||||
|
9
bin/dumpsql.sh
Executable file
9
bin/dumpsql.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
DATE=`date '+%Y-%m-%d_%H%M%S'`
|
||||
#SCRIPT_D=dirname $0
|
||||
|
||||
#export $(cat ${SCRIPT_D}/../.env | grep -v ^# | xargs)
|
||||
|
||||
docker exec materiod8_mysql_1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" materio_d8' > "./ressources/materio_d8-${DATE}-local.sql"
|
||||
docker exec materiod8_mysql-legacy_1 sh -c 'exec mysqldump -uroot -p"$MYSQL_ROOT_PASSWORD" materio_d7' > "./ressources/materio_d7-${DATE}-local.sql"
|
Loading…
x
Reference in New Issue
Block a user