mys3ql 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,17 +9,19 @@ Install and configure as below.
9
9
 
10
10
  To perform a full backup:
11
11
 
12
- $ mys3ql -f
13
- $ mys3ql --full
12
+ $ mys3ql full
14
13
 
15
14
  If you are using MySql's binary logging (see below), back up the binary logs like this:
16
15
 
17
- $ mys3ql -i
18
- $ mys3ql --incremental
16
+ $ mys3ql incremental
17
+
18
+ To restore from the latest backup (plus binlogs if present):
19
+
20
+ $ mys3ql restore
19
21
 
20
22
  By default mys3ql looks for a configuration file at ~/.mys3ql. You can override this like so:
21
23
 
22
- $ mys3ql -f --config=FILE
24
+ $ mys3ql [command] --config=FILE
23
25
 
24
26
 
25
27
  ## Installation
data/bin/mys3ql CHANGED
@@ -10,7 +10,7 @@ Main do
10
10
  # consider using modes as/when we need command-specific arguments (e.g. restore specific backup)
11
11
  argument 'command' do
12
12
  validate { |command| %w[ full incremental restore ].include? command }
13
- description 'full | incremental | restore'
13
+ description 'specifies the operation to perform [full | incremental | restore]'
14
14
  end
15
15
 
16
16
  option 'config', 'c' do
@@ -26,10 +26,10 @@ Main do
26
26
  option 'version', 'v'
27
27
 
28
28
  def run
29
- if params[:version]
29
+ if params[:version].given?
30
30
  puts "mys3ql v#{Mys3ql::VERSION}"
31
31
  exit
32
32
  end
33
- Mys3ql::Conductor.run params[:command].value, params[:config].value, params[:debug].value
33
+ Mys3ql::Conductor.run params[:command].value, params[:config].value, params[:debug].given?
34
34
  end
35
35
  end
data/lib/mys3ql/s3.rb CHANGED
@@ -7,6 +7,7 @@ module Mys3ql
7
7
 
8
8
  def initialize(config)
9
9
  @config = config
10
+ Fog::Logger[:warning] = nil
10
11
  end
11
12
 
12
13
  def store(file, dump = true)
@@ -15,7 +16,7 @@ module Mys3ql
15
16
  if dump && s3_file
16
17
  copy_key = key_for :latest
17
18
  s3_file.copy @config.bucket, copy_key
18
- log "copied #{key} to #{copy_key}"
19
+ log "s3: copied #{key} to #{copy_key}"
19
20
  end
20
21
  end
21
22
 
@@ -1,3 +1,3 @@
1
1
  module Mys3ql
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mys3ql
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Stewart
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-03 00:00:00 +01:00
18
+ date: 2011-11-04 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency