backupper 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/lib/backupper/dump_command.rb +4 -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: 6732c30468e86071392cbc1545ade2132f75f10fc10a5c5ef603309c1c8778a0
|
4
|
+
data.tar.gz: 6277da7cf00f5ce107dca80ac6a703f94890be3aa0d4c1eb920cd3bb59826b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37f1f3d7417ad9b7603eee7dcedbacd51efa4d9e5c9cf5df795cbedb9638421a9ed3fd02a658bc0e69bbcbcefd0e4ea9ec98b8f6f75e5a8f54be3729da5e8c4d
|
7
|
+
data.tar.gz: 132024ca21163d430a93f864fee2b97411041446955ef1834f2d79b7eaffdc848cc3ec1efa376a053a402f7401082f9d247bb6785b5a24f0385465fa8d8e9df3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
backupper (0.4.
|
4
|
+
backupper (0.4.2)
|
5
5
|
mail (~> 2.7)
|
6
6
|
sshkit (~> 1.15)
|
7
7
|
|
@@ -11,12 +11,12 @@ GEM
|
|
11
11
|
byebug (11.0.1)
|
12
12
|
mail (2.7.1)
|
13
13
|
mini_mime (>= 0.1.1)
|
14
|
-
mini_mime (1.
|
15
|
-
net-scp (
|
16
|
-
net-ssh (>= 2.6.5, <
|
17
|
-
net-ssh (
|
14
|
+
mini_mime (1.1.2)
|
15
|
+
net-scp (3.0.0)
|
16
|
+
net-ssh (>= 2.6.5, < 7.0.0)
|
17
|
+
net-ssh (6.1.0)
|
18
18
|
rake (10.5.0)
|
19
|
-
sshkit (1.
|
19
|
+
sshkit (1.21.2)
|
20
20
|
net-scp (>= 1.1.2)
|
21
21
|
net-ssh (>= 2.8.0)
|
22
22
|
|
@@ -31,4 +31,4 @@ DEPENDENCIES
|
|
31
31
|
rake (~> 10.0)
|
32
32
|
|
33
33
|
BUNDLED WITH
|
34
|
-
2.
|
34
|
+
2.3.8
|
@@ -2,17 +2,17 @@ module DumpCommand
|
|
2
2
|
def self.mysql(database:, username: 'root', password: nil, dump_options: nil, outfile:)
|
3
3
|
params = []
|
4
4
|
params << "--databases '#{database}'"
|
5
|
-
params << "-u#{username}"
|
6
|
-
params << "-p#{password}" if password
|
5
|
+
params << "-u'#{username}'"
|
6
|
+
params << "-p'#{password}'" if password
|
7
7
|
params << dump_options if dump_options
|
8
8
|
return "mysqldump #{params.join(' ')} | bzip2 > '#{outfile}'"
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.postgresql(database:, username: 'root', password: nil, dump_options: nil, outfile:)
|
12
12
|
params = []
|
13
|
-
params << "-U #{username}"
|
13
|
+
params << "-U '#{username}'"
|
14
14
|
params << "'#{database}'"
|
15
15
|
params << dump_options if dump_options
|
16
|
-
return "PGPASSWORD
|
16
|
+
return "PGPASSWORD='#{password}' pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
|
17
17
|
end
|
18
18
|
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.4.
|
4
|
+
version: 0.4.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: 2022-06-28 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.0.
|
125
|
+
rubygems_version: 3.0.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Tool to backup databases
|