Commit 25f9c3dc authored by Ozoux's avatar Ozoux

Add a backup script

parent 2c6c8653
#!/bin/bash -eux
URL=${PWD##*/}
db_container_name=`echo ${URL}_db_1 | sed "s/\.//g" | sed "s/-//g"`; \
docker exec $db_container_name bash -c 'pg_dumpall -U postgres' > ./data/dump.sql
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment