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

Add a backup script

parent 2c6c8653
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"`; \
docker exec $db_container_name bash -c 'pg_dumpall -U postgres' > ./data/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