Class: Backup::Configuration::Database::MySQL

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/configuration/database/mysql.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 “mysqldump” options



32
33
34
# File 'lib/backup/configuration/database/mysql.rb', line 32

def additional_options
  @additional_options
end

.hostObject

Connectivity options



20
21
22
# File 'lib/backup/configuration/database/mysql.rb', line 20

def host
  @host
end

.mysqldump_utilityObject

Path to mysqldump utility (optional)



36
37
38
# File 'lib/backup/configuration/database/mysql.rb', line 36

def mysqldump_utility
  @mysqldump_utility
end

.nameObject

Name of the database that needs to get dumped. To dump all databases, set this to ‘:all` or leave blank.



12
13
14
# File 'lib/backup/configuration/database/mysql.rb', line 12

def name
  @name
end

.only_tablesObject

Tables to dump, tables that aren’t specified won’t get dumped



28
29
30
# File 'lib/backup/configuration/database/mysql.rb', line 28

def only_tables
  @only_tables
end

.passwordObject

Credentials for the specified database



16
17
18
# File 'lib/backup/configuration/database/mysql.rb', line 16

def password
  @password
end

.portObject

Connectivity options



20
21
22
# File 'lib/backup/configuration/database/mysql.rb', line 20

def port
  @port
end

.skip_tablesObject

Tables to skip while dumping the database



24
25
26
# File 'lib/backup/configuration/database/mysql.rb', line 24

def skip_tables
  @skip_tables
end

.socketObject

Connectivity options



20
21
22
# File 'lib/backup/configuration/database/mysql.rb', line 20

def socket
  @socket
end

.usernameObject

Credentials for the specified database



16
17
18
# File 'lib/backup/configuration/database/mysql.rb', line 16

def username
  @username
end