Sha256: e5c016aaee02595e7c7b1dea4883ea664962fa52907d9c9f7b2a16da77bd8656
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
require 'rake' namespace :koine do namespace :mysql do desc 'mysqldump to backup file' task :dump do hostname = ENV.fetch('DB_HOST') database = ENV.fetch('DB_NAME') username = ENV.fetch('DB_USER') password = ENV.fetch('DB_PASSWORD') { nil } file_pattern = ENV.fetch('MYSQL_BACKUP_FILE') file_pattern = file backup = Koine::DbBkp::Mysql::Dump.new( hostname: hostname, database: database, username: username, password: password, ) backup.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_dump.rake |