sqlup 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.0.6 / 2007-07-16
2
+
3
+ * 1 major enhancement
4
+ * ActiveRecord not used any more
5
+
1
6
  == 0.0.5 / 2007-07-03
2
7
 
3
8
  * 1 major enhancement
data/bin/sqlup CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ #
2
3
 
3
4
  require 'rubygems'
4
5
  require 'optiflag'
data/bin/sqlup_control CHANGED
@@ -6,6 +6,14 @@
6
6
  # sqlup_control start -- -logs_delay 10 log_daemon
7
7
  #
8
8
  # This will back up your log files every 10 seconds.
9
+ #
10
+ # ~/.sqluprc can contain a line:
11
+ #
12
+ # pid_dir: /var/run/sqlup
13
+ #
14
+ # The pidfile will be stored in that directory. If that key isn't present,
15
+ # the SQLUP_PID_DIR environment variable will be used, and finally
16
+ # the directory that the script is in.
9
17
 
10
18
  require 'rubygems'
11
19
  require 'daemons'
@@ -13,7 +21,13 @@ require 'optiflag'
13
21
 
14
22
  options = {}
15
23
 
16
- pid_dir = ENV['SQLUP_PID_DIR']
24
+ rc_data = {}
25
+ p = Pathname.new(ENV['HOME']) + '.sqluprc'
26
+ if p.readable?
27
+ rc_data = YAML::load p.open
28
+ end
29
+
30
+ pid_dir = rc_data['pid_dir'] || ENV['SQLUP_PID_DIR']
17
31
 
18
32
  if pid_dir
19
33
  options[:dir] = pid_dir
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'named_arguments'
3
- require 'active_record/vendor/mysql'
4
3
  require 'mysql_backup/entity'
5
4
  require 'mysql_backup/entity/logs'
6
5
  require 'mysql_backup/entity/files/innodb'
data/lib/mysql_backup.rb CHANGED
@@ -4,5 +4,5 @@ require 'mysql_backup/librarian'
4
4
  require 'mysql_backup/storage/s3'
5
5
 
6
6
  module MysqlBackup
7
- VERSION = '0.0.5'
7
+ VERSION = '0.0.6'
8
8
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: sqlup
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.5
7
- date: 2007-07-03 00:00:00 -07:00
6
+ version: 0.0.6
7
+ date: 2007-07-16 00:00:00 -07:00
8
8
  summary: A backup tool for saving MySQL data to Amazon's S3 service
9
9
  require_paths:
10
10
  - lib