backupper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backupper/backupper.rb +1 -2
- data/lib/backupper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c205c2445a240bbf8152fcb60a2dff3ac73227fa
|
4
|
+
data.tar.gz: '0780c2842af054097dec06bcc6bc03e35175fcb1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d45d563ff81017ecc83f55674790765fae60909b11f4ab4acbb4ceb592ad0f9ce7ea1503f3e7d262ab85925d3555550b8f84df76a9a080683ba48ba7521918
|
7
|
+
data.tar.gz: 85f4fb91af12ade124e7311d35d07da1aeee40229d0662a535b2210e32c17fdd961d2731a2c91dec51909bee3b49d978b3c7b837cc5c933efc1d56e07ecf8e56
|
data/lib/backupper/backupper.rb
CHANGED
@@ -87,10 +87,9 @@ class Backupper
|
|
87
87
|
def postgresql_dump_command(database:, username: 'root', password: nil, dump_options: nil, outfile:)
|
88
88
|
params = []
|
89
89
|
params << "-U #{username}"
|
90
|
-
params << "-W #{password}" if password
|
91
90
|
params << "'#{database}'"
|
92
91
|
params << dump_options if dump_options
|
93
|
-
return "pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
|
92
|
+
return "PGPASSWORD=#{password} pg_dump #{params.join(' ')} | bzip2 > '#{outfile}'"
|
94
93
|
end
|
95
94
|
|
96
95
|
def download_dump(key:, adapter: 'mysql', host:, password: nil, database:, db_username: 'root', db_password: nil, dump_options: nil, outdir:, extra_copy: nil)
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pioz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|