Skip to content

Commit

Permalink
Merge pull request #132 from jamebal/develop
Browse files Browse the repository at this point in the history
chore: update jc.sh
  • Loading branch information
jamebal authored Jul 9, 2024
2 parents 209268c + 3df639e commit f808388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ run_mongo() {
judge "备份数据库"
elif [ "$1" = "restore" ]; then
# 恢复数据库
run_exec mongodb "mongorestore -d jmalcloud --dir /dump/jmalcloud --gzip --quiet"
run_exec mongodb "mongorestore --gzip --nsInclude=jmalcloud.* --dir /dump/jmalcloud --quiet"
judge "恢复数据库"
fi
}
Expand Down

0 comments on commit f808388

Please sign in to comment.