Class: LvmMysqlBackup

Inherits:
Thor
  • Object
show all
Defined in:
lib/lvm-mysql-backup.rb

Instance Method Summary collapse

Instance Method Details

#backup(database_yml, backup_location, sms_number, s3_bucket = false) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/lvm-mysql-backup.rb', line 11

def backup(database_yml, backup_location, sms_number, s3_bucket = false)
  @database_yml    = database_yml
  @backup_location = backup_location
  @s3_bucket       = s3_bucket
  @sms_number      = sms_number

  init
  acquire_lock
  take_snapshot
  release_lock
  handle_snapshot_result
end