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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7ad805ded2b476fa15ab93e4d7a30ee24706db16eedccd61dab6b3a19c6f44a
4
- data.tar.gz: 9df2c9872eb1e5689c8c5b17b6709d5e7bb7321e2f3830137dd201183b7200a7
3
+ metadata.gz: 427e5d2913d10307c2a02b49cf8948aec658561267d602553b1c8a2f02af113a
4
+ data.tar.gz: cf4a1a6fe666551223bea18ed1a53d8a6aa170d23e1a5bcc52f92c6282f5fea6
5
5
  SHA512:
6
- metadata.gz: 1b76736afcd222f115641eb3821ac810ec7bb8969a5220967d55af69206ae027808a766db8a64a896cbffde2d1a415f0f922f68033f49263c9db1b95406be412
7
- data.tar.gz: 5b77aea5a333d87b0461443fb4a83abca544aa0b8e8546b9de38ce10e8b08535fffbcf1c39ce2d81a5f4860b849c488e44042dd67b44f910fa977bf2fcfb0149
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
@@ -1,3 +1,3 @@
1
1
  class Backupper
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
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.1
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: 2023-01-04 00:00:00.000000000 Z
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.26
125
+ rubygems_version: 3.5.3
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Tool to backup databases