From 64eeccf29986386c77f92c0afd7629f461e5ffd5 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 30 Jun 2019 13:20:51 +0300 Subject: [PATCH] Updated Export Docker Mongo Data (markdown) --- Export-Docker-Mongo-Data.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Export-Docker-Mongo-Data.md b/Export-Docker-Mongo-Data.md index 17ed41c..0c2cb34 100644 --- a/Export-Docker-Mongo-Data.md +++ b/Export-Docker-Mongo-Data.md @@ -112,13 +112,13 @@ docker cp wekan-db:/dump . docker cp dump wekan-db:/data/ docker exec -it wekan-db bash cd /data -mongorestore --drop --db wekan /data/dump/wekan/ +mongorestore --drop --noIndexRestore --db wekan /data/dump/wekan/ exit ``` That dbname can be for example wekan: ``` -mongorestore --drop --db wekan /data/dump/wekan/ +mongorestore --drop --noIndexRestore --db wekan /data/dump/wekan/ ``` 9b) Or restore to another mongo database, in different port: @@ -187,7 +187,7 @@ if [ $? = 0 ]; then tar -zx -f $1 -C $SCRIPTPATH/backups/$DATE-restore docker exec -t wekan-db bash -c "rm -fr /restore ; mkdir /restore" docker cp $SCRIPTPATH/backups/$DATE-restore/wekan wekan-db:/restore - docker exec -t wekan-db bash -c "mongorestore --drop --db wekan /restore/wekan/" + docker exec -t wekan-db bash -c "mongorestore --drop --noIndexRestore --db wekan /restore/wekan/" fi else echo "wekan-db container is not running"