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 +4 -4
- data/.semver +1 -1
- data/Gemfile.lock +20 -19
- data/README.org +1 -0
- data/elastic-backup-2s3.gemspec +3 -3
- data/lib/elastic-backup-2s3/cli.rb +3 -6
- data/lib/elastic-backup-2s3/snapshot.rb +2 -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: 75fee2b2d32678ae729f1695176b55a1e77140eb
|
4
|
+
data.tar.gz: 226aa5ec35680adf178c53f16aa0bd560c15efd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ab70b23a6577f5f76ed963d43f8baada38f1c35fe977c01e4fde28b3e1d735fc81daed4be67910f47443824b46dbbc49edbcfab333e082180c1b29d7a7af82
|
7
|
+
data.tar.gz: ea4d19a5cfb46efead19f13c287e3f6a3765b6787b56c95f5b5043791b54aa573714ab426ded21dd95a50693d9fb209cf2cbf4c0093425f7004a1b4f91e7083b
|
data/.semver
CHANGED
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.
|
12
|
-
aws-sdk (2.3.
|
13
|
-
aws-sdk-resources (= 2.3.
|
14
|
-
aws-sdk-core (2.3.
|
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.
|
17
|
-
aws-sdk-core (= 2.3.
|
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 (
|
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.
|
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.
|
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.
|
68
|
-
minitest (5.
|
69
|
-
multi_json (1.
|
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.
|
73
|
-
mini_portile2 (~> 2.
|
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.
|
85
|
-
byebug (~>
|
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.
|
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.
|
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. |
|
data/elastic-backup-2s3.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semver
|