introduce dump.sh and restore.sh scripts
This commit is contained in:
parent
0824ffffab
commit
3d3e708877
2 changed files with 8 additions and 0 deletions
4
docker-tools/dump.sh
Executable file
4
docker-tools/dump.sh
Executable 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
4
docker-tools/restore.sh
Executable 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
|
Loading…
Reference in a new issue