sweety_backy 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sweety_backy/commander.rb +1 -1
- data/lib/sweety_backy/version.rb +1 -1
- metadata +3 -3
@@ -15,7 +15,7 @@ module SweetyBacky
|
|
15
15
|
|
16
16
|
database_pass = opts[:database_pass].empty? ? '' : "-p#{opts[:database_pass]}"
|
17
17
|
|
18
|
-
SweetyBacky::Utils::command( "mysqldump -u#{opts[:database_user]} #{
|
18
|
+
SweetyBacky::Utils::command( "mysqldump -u#{opts[:database_user]} #{database_pass} #{database_name} > #{tmp_sql_file_path}" )
|
19
19
|
SweetyBacky::Utils::command( "tar -cz --same-permissions --file #{backup_path} --directory #{File.dirname(tmp_sql_file_path)} #{File.basename(tmp_sql_file_path)}" )
|
20
20
|
|
21
21
|
File.delete( tmp_sql_file_path )
|
data/lib/sweety_backy/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sweety_backy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Fernando Guillen
|