From 3d3e708877ebfd29dc6203b2f8cfb92b9b51ed47 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Tue, 28 Nov 2017 22:25:11 +0100 Subject: [PATCH] introduce dump.sh and restore.sh scripts --- docker-tools/dump.sh | 4 ++++ docker-tools/restore.sh | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 docker-tools/dump.sh create mode 100755 docker-tools/restore.sh 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