Merge pull request #107 from jamebal/chore

Chore
This commit is contained in:
jmal 2024-05-20 12:08:25 +08:00 committed by GitHub
commit 805dbcd253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
#### 环境准备: