mongo-oplog-backup 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2209ef2fcceb5eae7813ca6ac751dbc168665233
4
- data.tar.gz: 85beb19b54fdd9f4649f7043c42e8e17afc201fe
3
+ metadata.gz: c464ac7e971978efe22788614317405be8935f25
4
+ data.tar.gz: a12be71eeb235821321b8946ef6bcf10ff040724
5
5
  SHA512:
6
- metadata.gz: ec6c4c6ac09b3d8f84daac0c5729e1338237bffce0ea68ec691c888d1ad8e4d99db74bf9055608e28942f804248e9eff3232d73144bf276e71ab517bbbfa7db5
7
- data.tar.gz: 418a925734f82a66dcdfae5467ccb05f1f50bf30967ee0fc6d4861fab1a7f4ef41ce1519b78b21adfab77c4fa3f05e9f9a3ddeeea8a80d88a5583ac6bdb47458
6
+ metadata.gz: 2e495dcd5d7ebf02816187845dd7424980e77b5f098828dee1155d88fe59649d196d342ad5de048adb7631dd4faf98cc798cc2bc0180fde46ae3be5beb78e64c
7
+ data.tar.gz: accab78d844a1e729e0a1dc99264def3e07c31509344d337a32fe7bdb35c6f95288037bcc1e919004fba67514da4672fbbded878fdfe80885ccd365d35348789
@@ -97,6 +97,7 @@ module MongoOplogBackup
97
97
  raise "Cannot backup with empty oplog" if position.nil?
98
98
  backup_name = "backup-#{position}"
99
99
  dump_folder = File.join(config.backup_dir, backup_name, 'dump')
100
+ # TODO: fail hard if this command fails.
100
101
  config.mongodump("--out #{dump_folder}")
101
102
  return {
102
103
  position: position,
@@ -32,6 +32,8 @@ module MongoOplogBackup
32
32
  port = options[:port] ? "--port #{options[:port].strip} " : ''
33
33
  username = options[:username] ? "--username #{options[:username].strip} " : ''
34
34
  password = options[:password] ? "--password #{options[:password].strip} " : ''
35
+ # TODO: make this configurable?
36
+ authdb = options[:username] ? '--authenticationDatabase admin ' : ''
35
37
  "#{host}#{port}#{ssl}#{username}#{password}"
36
38
  end
37
39
 
@@ -1,3 +1,3 @@
1
1
  module MongoOplogBackup
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo-oplog-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ralf Kistner