elastic-backup-2s3 0.1.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semver +3 -3
- data/Gemfile.lock +14 -14
- data/README.org +17 -8
- data/elastic-backup-2s3.gemspec +3 -3
- data/lib/elastic-backup-2s3/cli.rb +2 -2
- data/lib/elastic-backup-2s3/snapshot.rb +2 -2
- 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: fef66fd312bd37c553c96fe060a7ae8696aeb957
|
4
|
+
data.tar.gz: bb320806fd69cc5f4cd0654e4c82d5eed68a385d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81b53b2dd31ad60edd59d5200554e0c68173420f234a6e2f1073f561b3364e2eff907abdfac829283189fe99141fa06914f6ac4dce58b2b2d5dfe3bc5d5eea2d
|
7
|
+
data.tar.gz: 47388ea82108433d4194bb02f60ac3d4cc7a302706497fc84cfcc8bd0f25f2c770402a7b01709a61237b763e8cfe704008feca8faf40b0b9985fe07ae28b334a
|
data/.semver
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (4.2.
|
4
|
+
activesupport (4.2.7)
|
5
5
|
i18n (~> 0.7)
|
6
6
|
json (~> 1.7, >= 1.7.7)
|
7
7
|
minitest (~> 5.1)
|
@@ -9,12 +9,12 @@ GEM
|
|
9
9
|
tzinfo (~> 1.1)
|
10
10
|
addressable (2.4.0)
|
11
11
|
awesome_print (1.7.0)
|
12
|
-
aws-sdk (2.
|
13
|
-
aws-sdk-resources (= 2.
|
14
|
-
aws-sdk-core (2.
|
12
|
+
aws-sdk (2.4.0)
|
13
|
+
aws-sdk-resources (= 2.4.0)
|
14
|
+
aws-sdk-core (2.4.0)
|
15
15
|
jmespath (~> 1.0)
|
16
|
-
aws-sdk-resources (2.
|
17
|
-
aws-sdk-core (= 2.
|
16
|
+
aws-sdk-resources (2.4.0)
|
17
|
+
aws-sdk-core (= 2.4.0)
|
18
18
|
binding_of_caller (0.7.2)
|
19
19
|
debug_inspector (>= 0.0.1)
|
20
20
|
builder (3.2.2)
|
@@ -26,18 +26,18 @@ GEM
|
|
26
26
|
thread_safe (~> 0.3, >= 0.3.1)
|
27
27
|
diff-lcs (1.2.5)
|
28
28
|
docile (1.1.5)
|
29
|
-
elasticsearch (1.0
|
30
|
-
elasticsearch-api (= 1.0
|
31
|
-
elasticsearch-transport (= 1.0
|
32
|
-
elasticsearch-api (1.0
|
29
|
+
elasticsearch (1.1.0)
|
30
|
+
elasticsearch-api (= 1.1.0)
|
31
|
+
elasticsearch-transport (= 1.1.0)
|
32
|
+
elasticsearch-api (1.1.0)
|
33
33
|
multi_json
|
34
|
-
elasticsearch-transport (1.0
|
34
|
+
elasticsearch-transport (1.1.0)
|
35
35
|
faraday
|
36
36
|
multi_json
|
37
37
|
faraday (0.9.2)
|
38
38
|
multipart-post (>= 1.2, < 3)
|
39
39
|
git (1.3.0)
|
40
|
-
github_api (0.14.
|
40
|
+
github_api (0.14.4)
|
41
41
|
addressable (~> 2.4.0)
|
42
42
|
descendants_tracker (~> 0.0.4)
|
43
43
|
faraday (~> 0.8, < 0.10)
|
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
highline (1.7.8)
|
48
48
|
i18n (0.7.0)
|
49
49
|
interception (0.5)
|
50
|
-
jmespath (1.3.
|
50
|
+
jmespath (1.3.1)
|
51
51
|
json (1.8.3)
|
52
52
|
juwelier (2.1.2)
|
53
53
|
builder
|
@@ -119,7 +119,7 @@ GEM
|
|
119
119
|
thread_safe (0.3.5)
|
120
120
|
tzinfo (1.2.2)
|
121
121
|
thread_safe (~> 0.1)
|
122
|
-
yard (0.9.
|
122
|
+
yard (0.9.2)
|
123
123
|
|
124
124
|
PLATFORMS
|
125
125
|
ruby
|
data/README.org
CHANGED
@@ -20,6 +20,14 @@
|
|
20
20
|
itself and remove the registration if you did not
|
21
21
|
specify a name for the registration.
|
22
22
|
|
23
|
+
** Breaking Changes
|
24
|
+
*** v1.0.0
|
25
|
+
The New 1.x version is not backards-compatable with the 0.x
|
26
|
+
versions. Especially for the File System-style backups,
|
27
|
+
the repo name is not appended to the directory path, to allow
|
28
|
+
for multiple repo backups on the file system. Please be aware
|
29
|
+
of this moving forward.
|
30
|
+
|
23
31
|
** Installation
|
24
32
|
|
25
33
|
To install from command line:
|
@@ -123,14 +131,15 @@
|
|
123
131
|
#+END_SRC
|
124
132
|
|
125
133
|
** Release Notes
|
126
|
-
| Date | Version | Description
|
127
|
-
|
128
|
-
| 2016-07-
|
129
|
-
| 2016-
|
130
|
-
| 2016-
|
131
|
-
| 2016-
|
132
|
-
| 2016-04-
|
133
|
-
|
|
134
|
+
| Date | Version | Description |
|
135
|
+
|------------+---------+-----------------------------------------------------------------------------------------|
|
136
|
+
| 2016-07-21 | v1.0.0 | Breaking changes in how the subdirectory paths are created. Please see [[Breaking Changes]] |
|
137
|
+
| 2016-07-12 | v0.1.5 | Fixed single index restore bug. |
|
138
|
+
| 2016-06-10 | v0.1.3 | Added a new --nv flag to switch off shared FS verification. |
|
139
|
+
| 2016-05-02 | v0.1.2 | Fixed a couple of minor issues with the restore from shared volume. |
|
140
|
+
| 2016-04-22 | v0.1.0 | Support for FS volume backups added |
|
141
|
+
| 2016-04-17 | v0.0.3 | Added a delete snapshot option to allow deletion of a running snapshot. |
|
142
|
+
| | | |
|
134
143
|
** Known Issues
|
135
144
|
| Date | Version | Description |
|
136
145
|
| 2061-04-17 | v0.0.3 | 'delete' options not fully implemented. |
|
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.
|
5
|
+
# stub: elastic-backup-2s3 1.0.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "elastic-backup-2s3"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "1.0.0"
|
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-07-
|
14
|
+
s.date = "2016-07-21"
|
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"]
|
@@ -32,13 +32,13 @@ module ElasticBackup
|
|
32
32
|
class_option :snapmax, type: :string,
|
33
33
|
aliases: '-S',
|
34
34
|
banner: "[BYTES_PER_SECOND]",
|
35
|
-
default: ENV['ESB_SNAPSHOT_MAX_BYTES_SEC'] || '
|
35
|
+
default: ENV['ESB_SNAPSHOT_MAX_BYTES_SEC'] || '15000mb',
|
36
36
|
desc: "For the --fs setting, the maximum bytes per second on snaphot creation."
|
37
37
|
|
38
38
|
class_option :remax, type: :string,
|
39
39
|
aliases: '-R',
|
40
40
|
banner: "[BYTES_PER_SECOND]",
|
41
|
-
default: ENV['ESB_RESTORE_MAX_BYTES_SEC'] || '
|
41
|
+
default: ENV['ESB_RESTORE_MAX_BYTES_SEC'] || '15000mb',
|
42
42
|
desc: "For the --fs setting, the maximum bytes per second on snapshot restoration."
|
43
43
|
|
44
44
|
class_option :monitor, type: :boolean, aliases: '-m', desc: "Monitor the progress.", default: false
|
@@ -66,13 +66,13 @@ module ElasticBackup
|
|
66
66
|
type: 's3',
|
67
67
|
settings: {
|
68
68
|
bucket: bucket,
|
69
|
-
base_path: base_path
|
69
|
+
base_path: [base_path, opt[:repo]].compact.join('/')
|
70
70
|
}}
|
71
71
|
else
|
72
72
|
{
|
73
73
|
type: 'fs',
|
74
74
|
settings: {
|
75
|
-
location: [opt[:sharedvol], opt[:postamble]].compact.join('/'),
|
75
|
+
location: [opt[:sharedvol], opt[:repo], opt[:postamble]].compact.join('/'),
|
76
76
|
max_snapshot_bytes_per_sec: opt[:snapmax],
|
77
77
|
max_restore_bytes_per_sec: opt[:remax]
|
78
78
|
}}
|
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.
|
4
|
+
version: 1.0.0
|
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-07-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semver
|