introduce dump.sh and restore.sh scripts

This commit is contained in:
Davide Alberani 2017-11-28 22:25:11 +01:00
parent 0824ffffab
commit 3d3e708877
2 changed files with 8 additions and 0 deletions

4
docker-tools/dump.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
docker build -t eventman-dump-and-restore .
docker run --name eventman-dump --rm --network="eventman_default" -v `pwd`:/data --link=eventman_eventman-mongo_1:eventman-mongo eventman-dump-and-restore --dump

4
docker-tools/restore.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
docker build -t eventman-dump-and-restore .
docker run --name eventman-restore --rm --network="eventman_default" -v `pwd`:/data --link=eventman_eventman-mongo_1:eventman-mongo eventman-dump-and-restore --restore $1