Skip to content
Snippets Groups Projects
Commit bbe923c9 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Adds backup!

parent f0376941
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -eux
URL=${PWD##*/}
db_container_name=`echo ${URL}_db_1 | sed "s/\.//g" | sed "s/-//g"`; \
echo "nothing to do :)"
docker exec $db_container_name mysqldump --all-databases --events -uadmin -p$MYSQL_ROOT_PASSWORD -h db > /dump/dump.sql
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment