Sha256: ad2aa7fd52b387973c4bd992a3dd3335dde38893e36352ac4c3ee1a9efb9c9ab

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

# encoding: utf-8

module Backup
  module Configuration
    module Database
      class MongoDB < Base
        class << self

          ##
          # Name of the database that needs to get dumped
          attr_accessor :name

          ##
          # Credentials for the specified database
          attr_accessor :username, :password

          ##
          # Connectivity options
          attr_accessor :host, :port

          ##
          # IPv6 support (disabled by default)
          attr_accessor :ipv6

          ##
          # Collections to dump, collections that aren't specified won't get dumped
          attr_accessor :only_collections

          ##
          # Additional "mongodump" options
          attr_accessor :additional_options

          ##
          # Path to the mongodump utility (optional)
          attr_accessor :mongodump_utility

          ##
          # Path to the mongo utility (optional)
          attr_accessor :mongo_utility

          ##
          # 'lock' dump meaning wrapping mongodump with fsync & lock
          attr_accessor :lock

        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
backup_checksum-3.0.23 lib/backup/configuration/database/mongodb.rb
backup-3.0.23 lib/backup/configuration/database/mongodb.rb
backup-3.0.22 lib/backup/configuration/database/mongodb.rb
backup-3.0.21 lib/backup/configuration/database/mongodb.rb