backup 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/backup.gemspec +8 -4
- data/lib/backup/adapter/assets.rb +10 -7
- data/lib/backup/adapter/custom.rb +12 -9
- data/lib/backup/adapter/mysql.rb +10 -7
- data/lib/backup/adapter/sqlite3.rb +9 -6
- metadata +12 -2
data/README.rdoc
CHANGED
@@ -74,7 +74,7 @@ It will now automagically remove the oldest backup from for example, S3, when th
|
|
74
74
|
- I wanted it to support archiving
|
75
75
|
- I wanted it to support encryption
|
76
76
|
- I wanted to be able to store my files on my private backup server and on Amazon S3
|
77
|
-
- I wanted it to be able to automatically
|
77
|
+
- I wanted it to be able to automatically remove old backups to keep S3/backup server costs low
|
78
78
|
|
79
79
|
==== Setting up Backup takes me about 1-2 minutes and it's really easy!
|
80
80
|
|
data/Rakefile
CHANGED
@@ -22,6 +22,7 @@ begin
|
|
22
22
|
gem.add_dependency "aws-s3", ">= 0.6.2"
|
23
23
|
gem.add_dependency "net-ssh", ">= 2.0.15"
|
24
24
|
gem.add_dependency "net-scp", ">= 1.0.2"
|
25
|
+
gem.add_dependency "sqlite3-ruby", ">= 1.2.5"
|
25
26
|
# gem.files.include 'generators/**/*'
|
26
27
|
# gem.files.include 'lib/**/*'
|
27
28
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.3
|
data/backup.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{backup}
|
8
|
-
s.version = "1.3.
|
8
|
+
s.version = "1.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael van Rooijen"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-11-08}
|
13
13
|
s.description = %q{
|
14
14
|
“Backup” is a RubyGem, written for Ruby on Rails. It's main purpose is to Backup any
|
15
15
|
files to Amazon S3 or any remotely accessible server through SSH (SCP). It supports database
|
@@ -71,14 +71,18 @@ Gem::Specification.new do |s|
|
|
71
71
|
s.add_runtime_dependency(%q<aws-s3>, [">= 0.6.2"])
|
72
72
|
s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.15"])
|
73
73
|
s.add_runtime_dependency(%q<net-scp>, [">= 1.0.2"])
|
74
|
+
s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
74
75
|
else
|
75
76
|
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
76
77
|
s.add_dependency(%q<net-ssh>, [">= 2.0.15"])
|
77
78
|
s.add_dependency(%q<net-scp>, [">= 1.0.2"])
|
79
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
78
80
|
end
|
79
81
|
else
|
80
82
|
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
81
83
|
s.add_dependency(%q<net-ssh>, [">= 2.0.15"])
|
82
84
|
s.add_dependency(%q<net-scp>, [">= 1.0.2"])
|
85
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
83
86
|
end
|
84
87
|
end
|
88
|
+
|
@@ -18,17 +18,20 @@ module Backup
|
|
18
18
|
# Encrypts the backup file
|
19
19
|
# - Transfer
|
20
20
|
# Initializes the transfer to either S3 or using SSH
|
21
|
-
# -
|
21
|
+
# - Record
|
22
22
|
# Records the Backup Data to the Backup SQLite3 database
|
23
23
|
# - Remove Temp Files
|
24
24
|
# Removes temporary files after the process is complete
|
25
25
|
def run
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
begin
|
27
|
+
archive
|
28
|
+
compress
|
29
|
+
encrypt
|
30
|
+
transfer
|
31
|
+
record
|
32
|
+
ensure
|
33
|
+
remove_temp_files
|
34
|
+
end
|
32
35
|
end
|
33
36
|
|
34
37
|
private
|
@@ -20,21 +20,24 @@ module Backup
|
|
20
20
|
# Encrypts the backup file
|
21
21
|
# - Transfer
|
22
22
|
# Initializes the transfer to either S3 or using SSH
|
23
|
-
# -
|
23
|
+
# - Record
|
24
24
|
# Records the Backup Data to the Backup SQLite3 database
|
25
25
|
# - Remove Temp Files
|
26
26
|
# Removes temporary files after the process is complete
|
27
27
|
# - Remove Original File
|
28
28
|
# Removes the user generated sql files (unless the user specifies he wants to keep them)
|
29
29
|
def run
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
30
|
+
begin
|
31
|
+
command
|
32
|
+
archive
|
33
|
+
compress
|
34
|
+
encrypt
|
35
|
+
transfer
|
36
|
+
record
|
37
|
+
ensure
|
38
|
+
remove_temp_files
|
39
|
+
remove_original_file
|
40
|
+
end
|
38
41
|
end
|
39
42
|
|
40
43
|
private
|
data/lib/backup/adapter/mysql.rb
CHANGED
@@ -18,17 +18,20 @@ module Backup
|
|
18
18
|
# Encrypts the backup file
|
19
19
|
# - Transfer
|
20
20
|
# Initializes the transfer to either S3 or using SSH
|
21
|
-
# -
|
21
|
+
# - Record
|
22
22
|
# Records the Backup Data to the Backup SQLite3 database
|
23
23
|
# - Remove Temp Files
|
24
24
|
# Removes temporary files after the process is complete
|
25
25
|
def run
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
begin
|
27
|
+
make_mysql_dump
|
28
|
+
compress
|
29
|
+
encrypt
|
30
|
+
transfer
|
31
|
+
record
|
32
|
+
ensure
|
33
|
+
remove_temp_files
|
34
|
+
end
|
32
35
|
end
|
33
36
|
|
34
37
|
private
|
@@ -16,16 +16,19 @@ module Backup
|
|
16
16
|
# Encrypts the backup file
|
17
17
|
# - Transfer
|
18
18
|
# Initializes the transfer to either S3 or using SSH
|
19
|
-
# -
|
19
|
+
# - Record
|
20
20
|
# Records the Backup Data to the Backup SQLite3 database
|
21
21
|
# - Remove Temp Files
|
22
22
|
# Removes temporary files after the process is complete
|
23
23
|
def run
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
begin
|
25
|
+
compress
|
26
|
+
encrypt
|
27
|
+
transfer
|
28
|
+
record
|
29
|
+
ensure
|
30
|
+
remove_temp_files
|
31
|
+
end
|
29
32
|
end
|
30
33
|
|
31
34
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-08 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -42,6 +42,16 @@ dependencies:
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 1.0.2
|
44
44
|
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: sqlite3-ruby
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.2.5
|
54
|
+
version:
|
45
55
|
description: "\n \xE2\x80\x9CBackup\xE2\x80\x9D is a RubyGem, written for Ruby on Rails. It's main purpose is to Backup any\n files to Amazon S3 or any remotely accessible server through SSH (SCP). It supports database\n and regular file backups. On top of that, it's extremely easy to set up. Backup will provide\n a generator script that will place all necessary files inside your Rails application.\n Two of which, are \xE2\x80\x9Cyaml\xE2\x80\x9D configuration files. Using just these two files to configure a\n backup for database formats such as a MySQL, SQLite3 or any Assets folder.\n Setting up \xE2\x80\x9CBackup\xE2\x80\x9D takes only about a minute or two!\n "
|
46
56
|
email: meskyan@gmail.com
|
47
57
|
executables: []
|