mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Updated Export Docker Mongo Data (markdown)
parent
f2e7e82e7a
commit
77ff13f8e6
1 changed files with 3 additions and 3 deletions
|
|
@ -95,13 +95,13 @@ docker cp wekan-db:/data/dump .
|
||||||
docker cp dump wekan-db:/data/
|
docker cp dump wekan-db:/data/
|
||||||
docker exec -it wekan-db bash
|
docker exec -it wekan-db bash
|
||||||
cd /data
|
cd /data
|
||||||
mongorestore --drop --db=<dbname>
|
mongorestore --drop --db wekan dump/wekan/
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
That dbname can be for example wekandb or mongodb:
|
That dbname can be for example wekan:
|
||||||
```
|
```
|
||||||
mongorestore --drop --db=wekandb
|
mongorestore --drop --db wekan dump/wekan/
|
||||||
```
|
```
|
||||||
|
|
||||||
9b) Or restore to another mongo database, in different port:
|
9b) Or restore to another mongo database, in different port:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue