db_backup 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/db_backup.rb CHANGED
@@ -99,8 +99,9 @@ auth += "-p#{options[:password]} " if options[:password]
99
99
 
100
100
  database_name = ARGV[0]
101
101
  output_file = "#{database_name}" + "_" + Time.now.strftime('%Y%m%d') + "_" + "#{$PROCESS_ID}" + ".sql"
102
+ output_file = File.join(ENV['HOME'], output_file)
102
103
 
103
- command = "/usr/local/mysql/bin/mysqldump " + "#{auth}#{database_name} > ./out/#{output_file}" # ---------------------------------------------- MySQL command
104
+ command = "/usr/local/mysql/bin/mysqldump " + "#{auth}#{database_name} > #{output_file}" # ---------------------------------------------- MySQL command
104
105
 
105
106
  if File.exists? output_file
106
107
  if options[:force]
@@ -1,3 +1,3 @@
1
1
  module Dbbackup
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: