elastic-backup-2s3 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 77699d024d5d9f82da71fb7c22fcc643216be7ac
4
- data.tar.gz: 12987b551dad9dccfca651dff0ba584e624c366a
3
+ metadata.gz: 75fee2b2d32678ae729f1695176b55a1e77140eb
4
+ data.tar.gz: 226aa5ec35680adf178c53f16aa0bd560c15efd6
5
5
  SHA512:
6
- metadata.gz: af3402692b145675cf711e9310f9866ab2d9b4b058f08b16e21a1020b2a170f010ecf32f71d98a4ce760b59e5e11785d802aad3c2cdbdce58e272e80c013633b
7
- data.tar.gz: e3ae8d1b149427dbaadf93581c8cb6bf9e08740b8fd11628a5ab160f66c83c072b59774dde7a4349bafd0f113419cf3967e6fada2e3d75c8c1107573d6e81d61
6
+ metadata.gz: f2ab70b23a6577f5f76ed963d43f8baada38f1c35fe977c01e4fde28b3e1d735fc81daed4be67910f47443824b46dbbc49edbcfab333e082180c1b29d7a7af82
7
+ data.tar.gz: ea4d19a5cfb46efead19f13c287e3f6a3765b6787b56c95f5b5043791b54aa573714ab426ded21dd95a50693d9fb209cf2cbf4c0093425f7004a1b4f91e7083b
data/.semver CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 2
4
+ :patch: 3
5
5
  :special: ''
data/Gemfile.lock CHANGED
@@ -8,17 +8,17 @@ GEM
8
8
  thread_safe (~> 0.3, >= 0.3.4)
9
9
  tzinfo (~> 1.1)
10
10
  addressable (2.4.0)
11
- awesome_print (1.6.1)
12
- aws-sdk (2.3.0)
13
- aws-sdk-resources (= 2.3.0)
14
- aws-sdk-core (2.3.0)
11
+ awesome_print (1.7.0)
12
+ aws-sdk (2.3.13)
13
+ aws-sdk-resources (= 2.3.13)
14
+ aws-sdk-core (2.3.13)
15
15
  jmespath (~> 1.0)
16
- aws-sdk-resources (2.3.0)
17
- aws-sdk-core (= 2.3.0)
16
+ aws-sdk-resources (2.3.13)
17
+ aws-sdk-core (= 2.3.13)
18
18
  binding_of_caller (0.7.2)
19
19
  debug_inspector (>= 0.0.1)
20
20
  builder (3.2.2)
21
- byebug (8.2.5)
21
+ byebug (9.0.5)
22
22
  coderay (1.1.1)
23
23
  colorize (0.7.7)
24
24
  debug_inspector (0.0.2)
@@ -37,12 +37,11 @@ GEM
37
37
  faraday (0.9.2)
38
38
  multipart-post (>= 1.2, < 3)
39
39
  git (1.3.0)
40
- github_api (0.13.1)
40
+ github_api (0.14.0)
41
41
  addressable (~> 2.4.0)
42
42
  descendants_tracker (~> 0.0.4)
43
43
  faraday (~> 0.8, < 0.10)
44
44
  hashie (>= 3.4)
45
- multi_json (>= 1.7.5, < 2.0)
46
45
  oauth2
47
46
  hashie (3.4.4)
48
47
  highline (1.7.8)
@@ -52,7 +51,7 @@ GEM
52
51
  json_pure (>= 1.8.1)
53
52
  json (1.8.3)
54
53
  json_pure (1.8.3)
55
- juwelier (2.1.1)
54
+ juwelier (2.1.2)
56
55
  builder
57
56
  bundler (>= 1.0)
58
57
  git (>= 1.2.5)
@@ -64,25 +63,27 @@ GEM
64
63
  semver
65
64
  jwt (1.5.1)
66
65
  method_source (0.8.2)
67
- mini_portile2 (2.0.0)
68
- minitest (5.8.4)
69
- multi_json (1.11.3)
66
+ mini_portile2 (2.1.0)
67
+ minitest (5.9.0)
68
+ multi_json (1.12.1)
70
69
  multi_xml (0.5.5)
71
70
  multipart-post (2.0.0)
72
- nokogiri (1.6.7.2)
73
- mini_portile2 (~> 2.0.0.rc2)
71
+ nokogiri (1.6.8)
72
+ mini_portile2 (~> 2.1.0)
73
+ pkg-config (~> 1.1.7)
74
74
  oauth2 (1.1.0)
75
75
  faraday (>= 0.8, < 0.10)
76
76
  jwt (~> 1.0, < 1.5.2)
77
77
  multi_json (~> 1.3)
78
78
  multi_xml (~> 0.5)
79
79
  rack (>= 1.2, < 3)
80
+ pkg-config (1.1.7)
80
81
  pry (0.10.3)
81
82
  coderay (~> 1.1.0)
82
83
  method_source (~> 0.8.1)
83
84
  slop (~> 3.4)
84
- pry-byebug (3.3.0)
85
- byebug (~> 8.0)
85
+ pry-byebug (3.4.0)
86
+ byebug (~> 9.0)
86
87
  pry (~> 0.10)
87
88
  pry-doc (0.8.0)
88
89
  pry (~> 0.9)
@@ -90,7 +91,7 @@ GEM
90
91
  pry-remote (0.1.8)
91
92
  pry (~> 0.9)
92
93
  slop (~> 3.0)
93
- pry-rescue (1.4.2)
94
+ pry-rescue (1.4.4)
94
95
  interception (>= 0.5)
95
96
  pry
96
97
  pry-stack_explorer (0.4.9.2)
@@ -150,4 +151,4 @@ DEPENDENCIES
150
151
  yard (~> 0)
151
152
 
152
153
  BUNDLED WITH
153
- 1.11.2
154
+ 1.12.5
data/README.org CHANGED
@@ -125,6 +125,7 @@
125
125
  ** Release Notes
126
126
  | Date | Version | Description |
127
127
  |------------+---------+-------------------------------------------------------------------------|
128
+ | 2016-06-10 | v0.1.3 | Added a new --nv flag to switch off shared FS verification. |
128
129
  | 2016-05-02 | v0.1.2 | Fixed a couple of minor issues with the restore from shared volume. |
129
130
  | 2016-04-22 | v0.1.0 | Support for FS volume backups added |
130
131
  | 2016-04-17 | v0.0.3 | Added a delete snapshot option to allow deletion of a running snapshot. |
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: elastic-backup-2s3 0.1.2 ruby lib
5
+ # stub: elastic-backup-2s3 0.1.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "elastic-backup-2s3"
9
- s.version = "0.1.2"
9
+ s.version = "0.1.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Fred Mitchell"]
14
- s.date = "2016-05-02"
14
+ s.date = "2016-06-10"
15
15
  s.description = "\n I simply want to be able to control the backup and\n restoration of the Elasticsearch cluster to S3\n without any fuss or having to dilly around with\n curl -XPUTS and friends.\n\n So here it is, and we now support Shared Volumes. See\n the docs on the --fs flag.\n\n There are many features I wish to add to this, and\n if you have any suggestions, please feel free to send\n them my way!"
16
16
  s.email = "fred.mitchell@gmx.de"
17
17
  s.executables = ["es-snapshot"]
@@ -24,6 +24,9 @@ module ElasticBackup
24
24
  class_option :fs, type: :boolean,
25
25
  desc: "Shared File System Backup. The environment variable ESB_SHARED_VOLUME must be set and also OR you can use the --sharedvol option."
26
26
 
27
+ class_option :nv, type: :boolean, default: false,
28
+ desc: "Switch off the verify for Shared File System backups and restores. This option is NOT RECOMMENDED, but might be needed in some cases."
29
+
27
30
  class_option :sharedvol, type: :string,
28
31
  aliases: '-V',
29
32
  banner: "[ABSOLUTE_PATH_ON_NODES]",
@@ -42,12 +45,6 @@ module ElasticBackup
42
45
  default: ENV['ESB_RESTORE_MAX_BYTES_SEC'] || '500mb',
43
46
  desc: "For the --fs setting, the maximum bytes per second on snapshot restoration."
44
47
 
45
- #class_option :saveconf,
46
- # aliases: '-s',
47
- # type: :boolean,
48
- # desc: "Save ES Snapshot Configuration to the ES cluster.",
49
- # default: false
50
-
51
48
  class_option :monitor, type: :boolean, aliases: '-m', desc: "Monitor the progress.", default: false
52
49
  class_option :wait, type: :boolean, aliases: '-w', desc: "Wait for completion.", default: false
53
50
  class_option :timeout, type: :numeric,
@@ -59,7 +59,8 @@ module ElasticBackup
59
59
  # there already.
60
60
  def set_repository snapurl, opt
61
61
  bucket, base_path, _ignore = opt[:fs] ? [nil, nil, nil] : snapurl_splice(snapurl)
62
- cmd = { repository: opt[:repo],
62
+ Elasticsearch::API.settings[:skip_parameter_validation] = true
63
+ cmd = { repository: opt[:repo], verify: (not opt[:nv]),
63
64
  body: unless opt[:fs]
64
65
  {
65
66
  type: 's3',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-backup-2s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Mitchell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semver