Class: Backup::Configuration::Database::MongoDB

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/configuration/database/mongodb.rb

Class Attribute Summary collapse

Method Summary

Methods inherited from Base

defaults

Methods included from Helpers

#clear_defaults!, #load_defaults!

Class Attribute Details

.additional_optionsObject

Additional “mongodump” options



31
32
33
# File 'lib/backup/configuration/database/mongodb.rb', line 31

def additional_options
  @additional_options
end

.hostObject

Connectivity options



19
20
21
# File 'lib/backup/configuration/database/mongodb.rb', line 19

def host
  @host
end

.ipv6Object

IPv6 support (disabled by default)



23
24
25
# File 'lib/backup/configuration/database/mongodb.rb', line 23

def ipv6
  @ipv6
end

.lockObject

‘lock’ dump meaning wrapping mongodump with fsync & lock



43
44
45
# File 'lib/backup/configuration/database/mongodb.rb', line 43

def lock
  @lock
end

.mongo_utilityObject

Path to the mongo utility (optional)



39
40
41
# File 'lib/backup/configuration/database/mongodb.rb', line 39

def mongo_utility
  @mongo_utility
end

.mongodump_utilityObject

Path to the mongodump utility (optional)



35
36
37
# File 'lib/backup/configuration/database/mongodb.rb', line 35

def mongodump_utility
  @mongodump_utility
end

.nameObject

Name of the database that needs to get dumped



11
12
13
# File 'lib/backup/configuration/database/mongodb.rb', line 11

def name
  @name
end

.only_collectionsObject

Collections to dump, collections that aren’t specified won’t get dumped



27
28
29
# File 'lib/backup/configuration/database/mongodb.rb', line 27

def only_collections
  @only_collections
end

.passwordObject

Credentials for the specified database



15
16
17
# File 'lib/backup/configuration/database/mongodb.rb', line 15

def password
  @password
end

.portObject

Connectivity options



19
20
21
# File 'lib/backup/configuration/database/mongodb.rb', line 19

def port
  @port
end

.usernameObject

Credentials for the specified database



15
16
17
# File 'lib/backup/configuration/database/mongodb.rb', line 15

def username
  @username
end