drebs 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDE5YTM0ZDEwMWJlNmZiMmY4NzQ2ZjhjOTI4NWQ0ODc4ZWExNzRmNg==
4
+ MzZmNzdhMDEzZDQ0YmNhNzMxYzY2NTcyOTRjMzA0NmY4OGRiYzllNg==
5
5
  data.tar.gz: !binary |-
6
- NDhlYmU3ZWFiYThiZTdiYmYxOTZiZjRiMWQ0NDM0YjEyN2VkZmM2Zg==
6
+ MTJkZTJiMmJiYjYxYmU4ODQ4OWRiNjYwNTMwZjQzZWYxYjk1MzMzNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTlhYzQ1NWVhYzliOWE3YTlkNmNlMDlkMjQ2ZTdjNjY1NzE1OTViZjA4NDRi
10
- ZDQ0MTM1NDFiZGI1YTFmYTAwNDBkMWQwY2Y2NTJiODZjNTY3MmM2NzI0MzA1
11
- MGRiOTE0M2VkMzAwYTY4ODlmM2IxMzFjYmZiMDUyZGE3OTNhY2Q=
9
+ NTU2MWMzYjhmMjU3ZDc2NzFiNGZlYjkwMWNjNzhiZGZkN2YyNTI3NGVmOTgy
10
+ MGY5NTllYzVhOTlhZGNkOWFjOTkwNDdlZmE1MmViNzU4MzllNjI3OGJhNWU2
11
+ MWRmZTY2OGYyNGI3NjljNDJjMzQ3OWM1YTI3MmRhMTdlNTE1MjY=
12
12
  data.tar.gz: !binary |-
13
- ZTAxZTc1NzUwNjllNTlmMzgzYTMwODQ0NTNjOWE2ZGNlYTdlY2I3MzkyYWU2
14
- NjJjOWY0NTE0ZGE3NWE4NDAyZmUxNjBlYjVlYWQxODM5MTVlNGRkZWQ3Yzg3
15
- NjRhZTM0NDFmY2UwOTk2YTI0MGQyMTVhMDA0YzAwMzUxNmY0MTg=
13
+ Y2FlZGU0NjlkNzU3NzMwNDVjYjgyZGQxNjY4NGU0YzJiNjZkODdmZGQzNmVk
14
+ YjQyNzU2OTgxZTMyZTIyZDEyNjM2NDA3ZjNjYWU2ZWNjNGNhNDFhMmQ1ZjQ5
15
+ NGMwNThmOGFkMzAzM2EzY2QyZTE3MGNiYjA0YWZjYWNiMWVmNmI=
data/README.md CHANGED
@@ -8,12 +8,12 @@
8
8
 
9
9
  ## Installation & Setup
10
10
  1. Clone the repo or install the gem
11
- 1. Output the example configuration to a file: drebs check_config example_config > your_config.yml
12
- 1. Create an AWS account with authorization limited to create, list, & delete snapshots (Example comming soon)
13
- 1. Add AWS API keys for above account to your_config.yml
14
- 1. configure your_config.yml per your backup requirements
15
- 1. test your configuration: drebs check_config your_config.yml && drebs check_cloud your_config.yml
16
- 1. Add Crontab entry: 0 * * * * drebs execute your_config.yml
11
+ 2. Output the example configuration to a file: drebs check_config example_config > your_config.yml
12
+ 3. Create an AWS account with authorization limited to create, list, & delete snapshots (Example coming soon)
13
+ 4. Add AWS API keys for above account to your_config.yml
14
+ 5. configure your_config.yml per your backup requirements
15
+ 6. test your configuration: drebs check_config your_config.yml && drebs check_cloud your_config.yml
16
+ 7. Add Crontab entry: 0 * * * * drebs execute your_config.yml
17
17
 
18
18
  ## Todo
19
19
  * Improve test coverage
@@ -21,7 +21,6 @@
21
21
  * Arbitrary execution intervals (Snapshots every 5 minutes instead of every hour)
22
22
  * AWS API keys and other config values from Instance Data: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html
23
23
  * Add example AWS user access configuration
24
- * Implement support for pruning to occur from some other host so that the keys to delete snapshots are not available on host.
25
24
 
26
25
  ## Testing notes
27
26
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "drebs"
6
- spec.version = "0.1.0"
6
+ spec.version = "0.1.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "drebs"
9
9
  spec.description = "drebs: Disaster Recovery for Elastic Block Store. An AWS EBS backup script."
@@ -5,7 +5,7 @@
5
5
  # DREBS libs
6
6
  #
7
7
  module DREBS
8
- Version = '0.1.0' unless defined?(Version)
8
+ Version = '0.1.1' unless defined?(Version)
9
9
 
10
10
  def version
11
11
  DREBS::Version
@@ -56,7 +56,7 @@ module Drebs
56
56
  pre_snapshot_tasks.each do |task|
57
57
  result, stdout, stderr = systemu(task)
58
58
  unless result.exitstatus == 0
59
- raise Exception(
59
+ raise Exception.new(
60
60
  "Error while executing pre-snapshot task: #{task} on #{ip}:#{mount_point} #{instance_id}:#{volume_id} "
61
61
  )
62
62
  end
@@ -70,7 +70,7 @@ module Drebs
70
70
  post_snapshot_tasks.each do |task|
71
71
  result = systemu(task)
72
72
  unless result.exitstatus == 0
73
- raise Exception(
73
+ raise Exception.new(
74
74
  "Error while executing post-snapshot task: #{task} on #{ip}:#{mount_point} #{instance_id}:#{volume_id} "
75
75
  )
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drebs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garett Shulman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-16 00:00:00.000000000 Z
12
+ date: 2014-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: right_aws