backupper 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backupper/dump_command.rb +2 -4
- data/lib/backupper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427e5d2913d10307c2a02b49cf8948aec658561267d602553b1c8a2f02af113a
|
4
|
+
data.tar.gz: cf4a1a6fe666551223bea18ed1a53d8a6aa170d23e1a5bcc52f92c6282f5fea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72cca9939837dd3d45ac6853ba2985349ac53659a8e34195b61b9133b08ffb35846346e3b656e933b587badbd27ff585124a9071c805fc7e80ca1f64ea19262e
|
7
|
+
data.tar.gz: 8a743ab45a61dfbf13c6f31511d4e8339a2f905c25c5602049073153ea09c0d1795daea96148d81c83fdd0ae72bf4296b26a32a0844c5c6e0a882f4c1fa67025
|
@@ -1,18 +1,16 @@
|
|
1
1
|
module DumpCommand
|
2
2
|
def self.mysql(database:, username: 'root', password: nil, dump_options: nil, outfile:)
|
3
3
|
params = []
|
4
|
-
params << "--databases '#{database}'"
|
5
4
|
params << "-u'#{username}'"
|
6
5
|
params << "-p'#{password}'" if password
|
7
6
|
params << dump_options if dump_options
|
8
|
-
return "mysqldump #{params.join(' ')} | bzip2 > '#{outfile}'"
|
7
|
+
return "mysqldump '#{database}' #{params.join(' ')} | bzip2 > '#{outfile}'"
|
9
8
|
end
|
10
9
|
|
11
10
|
def self.postgresql(database:, username: 'root', password: nil, dump_options: nil, outfile:)
|
12
11
|
params = []
|
13
12
|
params << "-U '#{username}'"
|
14
|
-
params << "'#{database}'"
|
15
13
|
params << dump_options if dump_options
|
16
|
-
return "PGPASSWORD='#{password}' pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
|
14
|
+
return "PGPASSWORD='#{password}' pg_dump '#{database}' #{params.join(' ')} | bzip2 > '#{outfile}'"
|
17
15
|
end
|
18
16
|
end
|
data/lib/backupper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backupper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pioz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.3
|
125
|
+
rubygems_version: 3.5.3
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Tool to backup databases
|