mys3ql 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # mys3ql = mysql + s3
2
2
 
3
- Simple backup of your MySql database onto Amazon S3.
3
+ Simple backup of your MySQL database onto Amazon S3.
4
4
 
5
5
 
6
6
  ## Quick start
@@ -19,8 +19,9 @@ To restore from the latest backup (plus binlogs if present):
19
19
 
20
20
  $ mys3ql restore
21
21
 
22
- By default mys3ql looks for a configuration file at ~/.mys3ql. You can override this like so:
22
+ By default mys3ql looks for a configuration file at `~/.mys3ql`. You can override this like so:
23
23
 
24
+ $ mys3ql [command] -c FILE
24
25
  $ mys3ql [command] --config=FILE
25
26
 
26
27
 
@@ -41,7 +42,7 @@ Second, create your config file:
41
42
  # Path (with trailing slash) to mysql commands e.g. mysqldump
42
43
  bin_path: /usr/local/mysql/bin/
43
44
  # If you are using MySql binary logging:
44
- # Path to the binary logs, should match the bin_log option in your my.cnf.
45
+ # Path to the binary logs, should match the log_bin option in your my.cnf.
45
46
  # Comment out if you are not using mysql binary logging
46
47
  bin_log: /var/lib/mysql/binlog/mysql-bin
47
48
 
@@ -56,16 +57,16 @@ If you only have one database to back up on your server, you can put the config
56
57
 
57
58
  ## Binary logging
58
59
 
59
- To use incremental backups you need to enable binary logging by making sure that the MySQL config file (my.cnf) has the following line in it:
60
+ To use incremental backups you need to enable binary logging by making sure that the MySQL config file (`/etc/my.cnf`) has the following line in it:
60
61
 
61
62
  log_bin = /var/db/mysql/binlog/mysql-bin
62
63
 
63
- The MySQL user needs to have the RELOAD and the SUPER privileges, these can be granted with the following SQL commands (which need to be executed as the MySQL root user):
64
+ The MySQL user needs to have the RELOAD and the SUPER privileges. These can be granted with the following SQL commands (which need to be executed as the MySQL root user):
64
65
 
65
66
  GRANT RELOAD ON *.* TO 'user_name'@'%' IDENTIFIED BY 'password';
66
67
  GRANT SUPER ON *.* TO 'user_name'@'%' IDENTIFIED BY 'password';
67
68
 
68
- You may need to run mys3ql's incremental backup with special permissions (sudo), depending on the ownership of the binlogs directory.
69
+ You may need to run mys3ql's incremental backup with special permissions (sudo) depending on the ownership of the binlogs directory.
69
70
 
70
71
  N.B. the binary logs contain updates to all the databases on the server. This means you can only switch on incremental backups for one database per server, because the logs will be purged each time a database is dumped.
71
72
 
@@ -79,7 +80,7 @@ Marc-André Cournoyer's [mysql_s3_backup](https://github.com/macournoyer/mysql_s
79
80
 
80
81
  - tests ;)
81
82
  - remove old dump files (s3)
82
- - restore from non-latest dump
83
+ - (restore from non-latest dump)
83
84
 
84
85
 
85
86
  ## Questions, Problems, Feedback
@@ -23,7 +23,7 @@ module Mys3ql
23
23
  def delete_bin_logs
24
24
  each_bin_log do |file|
25
25
  file.destroy
26
- log "s3: destroyed #{file.key}"
26
+ log "s3: deleted #{file.key}"
27
27
  end
28
28
  end
29
29
 
@@ -5,7 +5,7 @@ module Mys3ql
5
5
  def run(command)
6
6
  log command
7
7
  result = `#{command}`
8
- log "==> #{result}"
8
+ log "==> #{result}" unless result.empty?
9
9
  raise ShellCommandError, "error (exit status #{$?.exitstatus}): #{command} ==> #{result}: #{$?}" unless $?.success?
10
10
  result
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Mys3ql
2
- VERSION = "0.0.5"
2
+ VERSION = '1.0.0'
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: 21
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 5
10
- version: 0.0.5
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Stewart