We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab21c3 commit cfa634cCopy full SHA for cfa634c
1 file changed
api/src/dump.ts
@@ -57,7 +57,7 @@ export const dump = async (dumpKey: string, _name?: string) => {
57
const mongoUrl = new URL(config.mongo.url)
58
mongoUrl.searchParams.set('readPreference', config.mongo.readPreference)
59
mongoUrl.pathname = '/' + db
60
- let cmd = `mongodump --uri ${mongoUrl.href} --gzip --archive=${tmpPath}`
+ let cmd = `mongodump --gzip --archive=${tmpPath} --uri ${mongoUrl.href}`
61
if (config.mongo.dumpParams && config.mongo.dumpParams[db]) {
62
cmd += ` ${config.mongo.dumpParams[db]}`
63
}
0 commit comments