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 d588326 commit cdcbd78Copy full SHA for cdcbd78
1 file changed
api/src/dump.ts
@@ -59,6 +59,7 @@ export const dump = async (dumpKey: string, _name?: string) => {
59
for (const db of dbs.databases.map(db => db.name).filter(db => !config.mongo.ignoreDBs.includes(db))) {
60
debug(`work on db ${db}`)
61
const tmpFile = await tmp.file({ dir: config.tmpdir })
62
+ debug(`created tmp file ${tmpFile.path}`)
63
const tmpPath = tmpFile.path
64
let cmd = `mongodump --uri ${config.mongo.url}/${db}?readPreference=${config.mongo.readPreference} --gzip --archive=${tmpPath}`
65
if (config.mongo.dumpParams && config.mongo.dumpParams[db]) {
0 commit comments