diff --git a/myvc-dump.js b/myvc-dump.js index 03258b2..61a3bcf 100644 --- a/myvc-dump.js +++ b/myvc-dump.js @@ -22,6 +22,7 @@ class Dump { async run(myvc, opts) { const conn = await myvc.dbConnect(); + const iniPath = path.join(opts.subdir || '', 'remotes', opts.iniFile); const dumpDir = `${opts.myvcDir}/dump`; if (!await fs.pathExists(dumpDir)) @@ -43,7 +44,7 @@ class Dump { }, opts.debug); let dumpArgs = [ - `--defaults-file=${opts.iniFile}`, + `--defaults-file=${iniPath}`, '--default-character-set=utf8', '--no-data', '--comments', @@ -56,7 +57,7 @@ class Dump { await this.dockerRun('myvc-dump.sh', dumpArgs, execOptions); const fixturesArgs = [ - `--defaults-file=${opts.iniFile}`, + `--defaults-file=${iniPath}`, '--no-create-info', '--skip-triggers', '--insert-ignore' diff --git a/package.json b/package.json index fe254b1..b7a8e0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myvc", - "version": "1.3.0", + "version": "1.3.1", "author": "Verdnatura Levante SL", "description": "MySQL Version Control", "license": "GPL-3.0",