Class: Backup::Adapters::MongoDB

Inherits:
Base show all
Defined in:
lib/backup/adapters/mongo_db.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#compressed_file, #encrypt_with_gpg_public_key, #encrypt_with_password, #encrypted_file, #final_file, #keep_backups, #options, #performed_file, #procedure, #timestamp, #tmp_path, #trigger

Method Summary

Methods inherited from Base

#create_tmp_folder, #encrypt, #handle_after_backup, #handle_before_backup, #initialize, #notify, #record, #remove_tmp_files, #skip_backup, #store, #system_messages

Methods included from CommandHelper

#log, #run

Constructor Details

This class inherits a constructor from Backup::Adapters::Base

Instance Attribute Details

#additional_optionsObject

Returns the value of attribute additional_options.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def additional_options
  @additional_options
end

#backup_methodObject

Returns the value of attribute backup_method.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def backup_method
  @backup_method
end

#collectionsObject

Returns the value of attribute collections.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def collections
  @collections
end

#databaseObject

Returns the value of attribute database.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def database
  @database
end

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def host
  @host
end

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def password
  @password
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def port
  @port
end

#userObject

Returns the value of attribute user.



6
7
8
# File 'lib/backup/adapters/mongo_db.rb', line 6

def user
  @user
end