Remove stopping wekan steps

Lauri Ojansivu 2016-07-05 11:42:14 +03:00
parent e99bb290c7
commit 91456ad7a2

@ -17,17 +17,12 @@ CONTAINER ID IMAGE COMMAND CREATED
4321mongoid mongo "/entrypoint.sh mongo" About an hour ago Up 46 minutes 27017/tcp wekan-db 4321mongoid mongo "/entrypoint.sh mongo" About an hour ago Up 46 minutes 27017/tcp wekan-db
``` ```
3) Stop wekan container, so it does not make changes when running: 3) Enter inside mongo container:
```bash
docker stop wekan
```
4) Enter inside mongo container:
```bash ```bash
docker exec -it wekan-db bash docker exec -it wekan-db bash
``` ```
5) OPTIONAL: If you want to browse data inside container, you can use CLI commands like listed at 4) OPTIONAL: If you want to browse data inside container, you can use CLI commands like listed at
https://docs.mongodb.com/manual/reference/mongo-shell/ https://docs.mongodb.com/manual/reference/mongo-shell/
@ -70,36 +65,31 @@ users
> exit > exit
``` ```
6) Go to /data directory: 5) Go to /data directory:
```bash ```bash
cd /data cd /data
``` ```
7) Backup database to files inside container to directory /data/dump, only Wekan database with name "admin" is included, not local: 6) Backup database to files inside container to directory /data/dump, only Wekan database with name "admin" is included, not local:
```bash ```bash
mongodump mongodump
``` ```
8) Exit from inside of container: 7) Exit from inside of container:
```bash ```bash
exit exit
``` ```
9) Copy backup directory /data/dump from inside of container to current directory: 8) Copy backup directory /data/dump from inside of container to current directory:
```bash ```bash
docker cp wekan-db:/data/dump . docker cp wekan-db:/data/dump .
``` ```
10) Restore to another mongo database, for example in different port: 9) Restore to another mongo database, for example in different port:
```bash ```bash
mongorestore --port 11235 mongorestore --port 11235
``` ```
11) After that start Wekan container again: 10) If you would like to browse mongo database that is outside of docker in GUI, you could try some admin interface:
```bash
docker start wekan
```
12) If you would like to browse mongo database that is outside of docker in GUI, you could try some admin interface:
https://docs.mongodb.com/ecosystem/tools/administration-interfaces/ https://docs.mongodb.com/ecosystem/tools/administration-interfaces/