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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d38383ae25098fd4f1158500d89f90b585bdfe1
4
- data.tar.gz: b87161f4e9b378259dc6eb648b16e1fecc0046da
3
+ metadata.gz: fef66fd312bd37c553c96fe060a7ae8696aeb957
4
+ data.tar.gz: bb320806fd69cc5f4cd0654e4c82d5eed68a385d
5
5
  SHA512:
6
- metadata.gz: b586275827b3433ff3683a97e36962daa3e7268f23533db4df548d8ecd4f2b0f0bc3b58129e47fc4cb0b37d9c032788e3bc8e72762da279a9efed6101cedc2b5
7
- data.tar.gz: f113701d75a0e159b28738d87c1ae3c43f3e65d9d035f2a8ed63da4f993d0663c4134dd93157ff5f9ad477b5cf3deeb06895d08878120ab0f4caf463ff548e5e
6
+ metadata.gz: 81b53b2dd31ad60edd59d5200554e0c68173420f234a6e2f1073f561b3364e2eff907abdfac829283189fe99141fa06914f6ac4dce58b2b2d5dfe3bc5d5eea2d
7
+ data.tar.gz: 47388ea82108433d4194bb02f60ac3d4cc7a302706497fc84cfcc8bd0f25f2c770402a7b01709a61237b763e8cfe704008feca8faf40b0b9985fe07ae28b334a
data/.semver CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :major: 0
3
- :minor: 1
4
- :patch: 5
2
+ :major: 1
3
+ :minor: 0
4
+ :patch: 0
5
5
  :special: ''
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (4.2.6)
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.3.21)
13
- aws-sdk-resources (= 2.3.21)
14
- aws-sdk-core (2.3.21)
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.3.21)
17
- aws-sdk-core (= 2.3.21)
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.18)
30
- elasticsearch-api (= 1.0.18)
31
- elasticsearch-transport (= 1.0.18)
32
- elasticsearch-api (1.0.18)
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.18)
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.3)
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.0)
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.0)
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-12 | v0.1.5 | Fixed single index restore bug. |
129
- | 2016-06-10 | v0.1.3 | Added a new --nv flag to switch off shared FS verification. |
130
- | 2016-05-02 | v0.1.2 | Fixed a couple of minor issues with the restore from shared volume. |
131
- | 2016-04-22 | v0.1.0 | Support for FS volume backups added |
132
- | 2016-04-17 | v0.0.3 | Added a delete snapshot option to allow deletion of a running snapshot. |
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. |
@@ -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 ruby lib
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.1.5"
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-12"
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'] || '500mb',
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'] || '500mb',
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.1.5
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-12 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semver