diff --git a/docker-tools/dump.sh b/docker-tools/dump.sh new file mode 100755 index 0000000..4a33338 --- /dev/null +++ b/docker-tools/dump.sh @@ -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 diff --git a/docker-tools/restore.sh b/docker-tools/restore.sh new file mode 100755 index 0000000..9746b56 --- /dev/null +++ b/docker-tools/restore.sh @@ -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