Skip to content

Commit

Permalink
Merge pull request #107 from jamebal/chore
Browse files Browse the repository at this point in the history
Chore
  • Loading branch information
jamebal committed May 20, 2024
2 parents fda29df + e71f085 commit 805dbcd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ docker exec -it jmalcloud_mongodb mongo jmalcloud --eval "db.getCollection('user
docker restart jmalcloud_server
# 重置后的密码为: jmalcloud
```
### 备份/恢复 数据库
#### 备份数据库
```shell
docker exec -it jmalcloud_mongodb mongodump -d jmalcloud -o /dump/xxx --gzip --quiet
```
#### 恢复数据库
```shell
docker exec -it jmalcloud_mongodb mongorestore -d jmalcloud --dir /dump/xxx --gzip --quiet
```

### dev
#### 环境准备:
Expand Down

0 comments on commit 805dbcd

Please sign in to comment.