Sha256: fb7b5a82f37e8e1a08b24d9d6e919e6ce5f014e73bc8816260f1a1549acab975

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

require 'rake'

namespace :koine do
  namespace :mysql do
    desc 'mysqldump to backup file from rails database'
    task rails_dump: [:environment] do
      file_pattern = ENV.fetch('MYSQL_BACKUP_FILE')
      file_pattern = file

      Koine::DbBkp::Mysql::RailsDump.new.to_sql_file(file)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koine-db_bkp-0.1.0 lib/koine/tasks/mysql_rails_dump.rake