cassback 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/{cassback.rb → cassback} +7 -3
- data/lib/cassandra.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77f4971ba8fd215e97e7913e769b38d997579e7a
|
4
|
+
data.tar.gz: 528c07c15c425ff23f9199e723f9527dc3b8fb77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d072146b634e237ddb81cb71a74264abf6170845a39e562d2cd4803b8a2cc4592259318a3febe6644496a889a6096ea63b1232fdd39e0d3b7a66e61b7e8c9b5b
|
7
|
+
data.tar.gz: b260b183b736be45472cb7d70834ff2cda18e1b76ff66f16948ef64c9d10d1a49225dfb4cf3b538f35695c72fe2e67be61e44a15936e338b20f6e4bccb8eabd0
|
@@ -26,7 +26,11 @@ action = nil
|
|
26
26
|
config_file = ''
|
27
27
|
|
28
28
|
# Default command line config
|
29
|
-
command_line_config = {
|
29
|
+
command_line_config = {
|
30
|
+
'cassandra' => {},
|
31
|
+
'hadoop' => {},
|
32
|
+
'restore' => {},
|
33
|
+
}
|
30
34
|
|
31
35
|
# Default options
|
32
36
|
options = {
|
@@ -80,7 +84,7 @@ parser = OptionParser.new do |opts|
|
|
80
84
|
options['date'] = v
|
81
85
|
end
|
82
86
|
opts.on('-t', '--destination DIR', 'local destination path for restore (default is cassandra)') do |v|
|
83
|
-
|
87
|
+
command_line_config['restore']['destination'] = v
|
84
88
|
end
|
85
89
|
|
86
90
|
opts.separator ''
|
@@ -97,7 +101,7 @@ parser = OptionParser.new do |opts|
|
|
97
101
|
|
98
102
|
opts.separator ''
|
99
103
|
opts.separator 'Cassandra:'
|
100
|
-
opts.on('-
|
104
|
+
opts.on('-E', '--cassandra CONFIGFILE', 'Cassandra configuration file (default is /etc/cassandra/conf/cassandra.yaml)') do |v|
|
101
105
|
command_line_config['cassandra']['config'] = v
|
102
106
|
end
|
103
107
|
|
data/lib/cassandra.rb
CHANGED
@@ -108,7 +108,7 @@ class Cassandra
|
|
108
108
|
|
109
109
|
def new_snapshot
|
110
110
|
today = Time.new.strftime('%Y_%m_%d')
|
111
|
-
snapname = '
|
111
|
+
snapname = 'cass_snap'
|
112
112
|
|
113
113
|
nodetool_snapshot(snapname)
|
114
114
|
metadata = build_metadata(snapname)
|
@@ -116,8 +116,8 @@ class Cassandra
|
|
116
116
|
CassandraSnapshot.new(@cluster_name, @node_name, today, metadata)
|
117
117
|
end
|
118
118
|
|
119
|
-
def delete_snapshot(
|
120
|
-
snapname = '
|
119
|
+
def delete_snapshot(_snapshot)
|
120
|
+
snapname = 'cass_snap'
|
121
121
|
nodetool_clearsnapshot(snapname)
|
122
122
|
end
|
123
123
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Van Hollebeke
|
@@ -85,17 +85,17 @@ email:
|
|
85
85
|
- v.vanhollebeke@criteo.com
|
86
86
|
- b.niculescu@criteo.com
|
87
87
|
executables:
|
88
|
-
- cassback
|
88
|
+
- cassback
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
-
- bin/cassback
|
92
|
+
- bin/cassback
|
93
93
|
- lib/backuptool.rb
|
94
94
|
- lib/cassandra.rb
|
95
95
|
- lib/hadoop.rb
|
96
96
|
homepage: http://rubygems.org/gems/cassback
|
97
97
|
licenses:
|
98
|
-
-
|
98
|
+
- Apache-2.0
|
99
99
|
metadata: {}
|
100
100
|
post_install_message:
|
101
101
|
rdoc_options: []
|