Method: MysqlBackup::Librarian#get_full_binary

Defined in:
lib/mysql_backup/librarian.rb

#get_full_binary(f, destination_dir = '/tmp') ⇒ Object



133
134
135
136
137
# File 'lib/mysql_backup/librarian.rb', line 133

def get_full_binary f, destination_dir = '/tmp'
  get_backup f do |tempfile|
    run_cmd "( cd #{destination_dir}; zcat #{tempfile.path} | tar xf - )"
  end
end