lvm-mysql-backup 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path('../../lib/lvm-mysql-backup', __FILE__)
4
+
5
+ LvmMysqlBackup.start
6
+
@@ -19,7 +19,6 @@ class LvmMysqlBackup < Thor
19
19
  take_snapshot
20
20
  release_lock
21
21
  handle_snapshot_result
22
- push_to_s3 if success? && push_to_s3?
23
22
  end
24
23
 
25
24
  protected
@@ -48,11 +47,6 @@ class LvmMysqlBackup < Thor
48
47
 
49
48
  def success
50
49
  logger.info("[MySQL Backup] Succeeded! Compressing and exporting to #{path_to_backup}")
51
- system("mkdir -p /current-backup")
52
- system("mount /dev/data/backup-#{date} /current-backup -onouuid,ro")
53
- system("cd /current-backup tar --file=#{path_to_backup} -czv mysql")
54
- system("umount /current-backup")
55
- system("lvremove -f /dev/data/backup-#{date}")
56
50
  end
57
51
 
58
52
  def path_to_backup
@@ -0,0 +1,67 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{lvm-mysql-backup}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["James Golick"]
12
+ s.date = %q{2009-10-31}
13
+ s.default_executable = %q{lvm-mysql-backup}
14
+ s.description = %q{script for making lvm backups of mysql}
15
+ s.email = %q{james@giraffesoft.ca}
16
+ s.executables = ["lvm-mysql-backup"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".gitignore",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bin/lvm-mysql-backup",
29
+ "lib/lvm-mysql-backup.rb",
30
+ "test/lvm-mysql-backup_test.rb",
31
+ "test/test_helper.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/giraffesoft/lvm-mysql-backup}
34
+ s.rdoc_options = ["--charset=UTF-8"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.5}
37
+ s.summary = %q{script for making lvm backups of mysql}
38
+ s.test_files = [
39
+ "test/lvm-mysql-backup_test.rb",
40
+ "test/test_helper.rb"
41
+ ]
42
+
43
+ if s.respond_to? :specification_version then
44
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
48
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
49
+ s.add_runtime_dependency(%q<thor>, [">= 0"])
50
+ s.add_runtime_dependency(%q<activerecord>, [">= 0"])
51
+ s.add_runtime_dependency(%q<aws-s3>, [">= 0"])
52
+ s.add_runtime_dependency(%q<mysql>, [">= 0"])
53
+ else
54
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
55
+ s.add_dependency(%q<thor>, [">= 0"])
56
+ s.add_dependency(%q<activerecord>, [">= 0"])
57
+ s.add_dependency(%q<aws-s3>, [">= 0"])
58
+ s.add_dependency(%q<mysql>, [">= 0"])
59
+ end
60
+ else
61
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
62
+ s.add_dependency(%q<thor>, [">= 0"])
63
+ s.add_dependency(%q<activerecord>, [">= 0"])
64
+ s.add_dependency(%q<aws-s3>, [">= 0"])
65
+ s.add_dependency(%q<mysql>, [">= 0"])
66
+ end
67
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lvm-mysql-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Golick
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-31 00:00:00 -07:00
13
- default_executable:
12
+ date: 2009-11-19 00:00:00 -08:00
13
+ default_executable: lvm-mysql-backup
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thoughtbot-shoulda
@@ -64,8 +64,8 @@ dependencies:
64
64
  version:
65
65
  description: script for making lvm backups of mysql
66
66
  email: james@giraffesoft.ca
67
- executables: []
68
-
67
+ executables:
68
+ - lvm-mysql-backup
69
69
  extensions: []
70
70
 
71
71
  extra_rdoc_files:
@@ -78,7 +78,9 @@ files:
78
78
  - README.rdoc
79
79
  - Rakefile
80
80
  - VERSION
81
+ - bin/lvm-mysql-backup
81
82
  - lib/lvm-mysql-backup.rb
83
+ - lvm-mysql-backup.gemspec
82
84
  - test/lvm-mysql-backup_test.rb
83
85
  - test/test_helper.rb
84
86
  has_rdoc: true