Skip to content

Commit 18122a0

Browse files
committed
Add mongodump opts
1 parent d363938 commit 18122a0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
indi-backup (0.3.1-0-gd363938) unstable; urgency=medium
2+
3+
* Release 0.3.1-0-gd363938
4+
5+
-- Jerome Quere <[email protected]> Thu, 20 Apr 2017 19:43:18 +0000
6+
17
indi-backup (0.3.0-0-g88068b7) unstable; urgency=medium
28

39
* Release 0.3.0-0-g88068b7

lib/tasks/mongo.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ function ib_task_mongo_run() {
3434
local port=$(ib_get_conf_value "IB_TASK_${taskName}_PORT")
3535
local user=$(ib_get_conf_value "IB_TASK_${taskName}_USER")
3636
local password=$(ib_get_conf_value "IB_TASK_${taskName}_PASSWORD")
37+
local dumpOpts=$(ib_get_conf_value "IB_TASK_${taskName}_DUMP_OPTS")
3738
local databases=$(ib_get_conf_value "IB_TASK_${taskName}_DATABASES")
3839
local storageName=$(ib_get_conf_value "IB_TASK_${taskName}_STORAGE")
3940

4041
[ -z "$databases" ] && databases="__ALL__"
4142

4243
[ -z "$storageName" ] && echo "No valid IB_TASK_${taskName}_STORAGE found" && return -1
4344

44-
local options=""
45+
local options="${dumpOpts}"
4546
[ ! -z "$host" ] && options="${options} --host=${host}"
4647
[ ! -z "$port" ] && options="${options} --port=${port}"
4748
[ ! -z "$user" ] && options="${options} --username=${user}"

0 commit comments

Comments
 (0)