backup 2.3.0 → 2.3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +5 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/backup.gemspec +4 -1
- data/generators/backup/templates/config/backup.rb +3 -1
- data/setup/backup.rb +9 -7
- metadata +11 -1
data/README.textile
CHANGED
@@ -10,7 +10,7 @@ h2. Backup goes independent with the release of version 2.3.0! Ruby on Rails is
|
|
10
10
|
|
11
11
|
I am pleased to announce that Backup (version 2.3.0+) has been released and am very satisfied with this update. Backup can now make use of an executable bin file! Why is this so awesome? Because now Backup is Ruby on Rails independent! This means you can make use of Backup whether you use Rails or not, and with the same simplicity! *(pshh.. It's actually simpler to be honest!)*.
|
12
12
|
|
13
|
-
Imagine you have one or more web applications written in another language on the same server, for example, a Python or PHP application. It'd be nice if you could also back up these databases in the same way you are used to, using Backup. Or what about having a MySQL Server running on a separate
|
13
|
+
Imagine you have one or more web applications written in another language on the same server, for example, a Python or PHP application. It'd be nice if you could also back up these databases in the same way you are used to, using Backup. Or what about having a MySQL Server running on a separate remote server? It'd be nice to be able to backup directly from that server instead of create a dump from there to the application's server and then push it to Amazon S3 or elsewhere. Previously this wasn't really possible. But now it is! Check this out.
|
14
14
|
|
15
15
|
*Install Backup Gem version 2.3.0 or later!*
|
16
16
|
|
@@ -38,6 +38,10 @@ bc. backup --help
|
|
38
38
|
|
39
39
|
bc. sudo backup --decrypt /path/to/encrypted/file
|
40
40
|
|
41
|
+
h3. Get started with Backup in the Unix environment!
|
42
|
+
|
43
|
+
"http://wiki.github.com/meskyanichi/backup/getting-started-unix":http://wiki.github.com/meskyanichi/backup/getting-started-unix
|
44
|
+
|
41
45
|
|
42
46
|
h2. (Current) Backup's Capabilities
|
43
47
|
|
data/Rakefile
CHANGED
@@ -23,7 +23,7 @@ begin
|
|
23
23
|
gem.add_dependency "net-sftp", ">= 2.0.4"
|
24
24
|
gem.add_dependency "activerecord", ">= 2.3.5"
|
25
25
|
gem.add_dependency "sqlite3-ruby", ">= 1.2.5"
|
26
|
-
|
26
|
+
gem.add_dependency "hirb", ">= 0.2.9"
|
27
27
|
|
28
28
|
end
|
29
29
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.0
|
1
|
+
2.3.0.1
|
data/backup.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{backup}
|
8
|
-
s.version = "2.3.0"
|
8
|
+
s.version = "2.3.0.1"
|
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"]
|
@@ -81,6 +81,7 @@ Gem::Specification.new do |s|
|
|
81
81
|
s.add_runtime_dependency(%q<net-sftp>, [">= 2.0.4"])
|
82
82
|
s.add_runtime_dependency(%q<activerecord>, [">= 2.3.5"])
|
83
83
|
s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
84
|
+
s.add_runtime_dependency(%q<hirb>, [">= 0.2.9"])
|
84
85
|
else
|
85
86
|
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
86
87
|
s.add_dependency(%q<net-ssh>, [">= 2.0.15"])
|
@@ -88,6 +89,7 @@ Gem::Specification.new do |s|
|
|
88
89
|
s.add_dependency(%q<net-sftp>, [">= 2.0.4"])
|
89
90
|
s.add_dependency(%q<activerecord>, [">= 2.3.5"])
|
90
91
|
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
92
|
+
s.add_dependency(%q<hirb>, [">= 0.2.9"])
|
91
93
|
end
|
92
94
|
else
|
93
95
|
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
@@ -96,6 +98,7 @@ Gem::Specification.new do |s|
|
|
96
98
|
s.add_dependency(%q<net-sftp>, [">= 2.0.4"])
|
97
99
|
s.add_dependency(%q<activerecord>, [">= 2.3.5"])
|
98
100
|
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
101
|
+
s.add_dependency(%q<hirb>, [">= 0.2.9"])
|
99
102
|
end
|
100
103
|
end
|
101
104
|
|
@@ -31,7 +31,7 @@
|
|
31
31
|
# - Encrypt With Pasword (encrypt_with_password)
|
32
32
|
#
|
33
33
|
# This is the "decrypt" command for all encrypted backups:
|
34
|
-
#
|
34
|
+
# sudo backup --decrypt /path/to/encrypted/file
|
35
35
|
#
|
36
36
|
# Each Backup Setting can contain:
|
37
37
|
# - 1 Adapter
|
@@ -60,6 +60,7 @@ backup 'mysql-backup-s3' do
|
|
60
60
|
# port '80'
|
61
61
|
# socket '/tmp/socket.sock'
|
62
62
|
# end
|
63
|
+
# additional_options '--single-transaction --quick'
|
63
64
|
end
|
64
65
|
|
65
66
|
storage :s3 do
|
@@ -90,6 +91,7 @@ backup 'postgresql-backup-scp' do
|
|
90
91
|
# port '80'
|
91
92
|
# socket '/tmp/socket.sock'
|
92
93
|
# end
|
94
|
+
# additional_options '--clean --blobs'
|
93
95
|
end
|
94
96
|
|
95
97
|
storage :scp do
|
data/setup/backup.rb
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
#
|
7
7
|
# In the example below we have a "mysql-backup-s3" trigger for the backup setting.
|
8
8
|
# All the configuration is done inside this block. To initialize the backup process for this block,
|
9
|
-
# you invoke it using the following
|
9
|
+
# you invoke it using the following command:
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# backup --run mysql-backup-s3
|
12
12
|
#
|
13
13
|
# You can add as many backup block settings as you want, just be sure every trigger is unique and you can run
|
14
14
|
# each of them separately.
|
@@ -30,7 +30,7 @@
|
|
30
30
|
# - Encrypt With Pasword (encrypt_with_password)
|
31
31
|
#
|
32
32
|
# This is the "decrypt" command for all encrypted backups:
|
33
|
-
#
|
33
|
+
# sudo backup --decrypt /path/to/encrypted/file
|
34
34
|
#
|
35
35
|
# Each Backup Setting can contain:
|
36
36
|
# - 1 Adapter
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
|
46
46
|
# Initialize with:
|
47
|
-
#
|
47
|
+
# sudo backup --run mysql-backup-s3
|
48
48
|
backup 'mysql-backup-s3' do
|
49
49
|
|
50
50
|
adapter :mysql do
|
@@ -59,6 +59,7 @@ backup 'mysql-backup-s3' do
|
|
59
59
|
# port '80'
|
60
60
|
# socket '/tmp/socket.sock'
|
61
61
|
# end
|
62
|
+
# additional_options '--single-transaction --quick'
|
62
63
|
end
|
63
64
|
|
64
65
|
storage :s3 do
|
@@ -75,7 +76,7 @@ end
|
|
75
76
|
|
76
77
|
|
77
78
|
# Initialize with:
|
78
|
-
#
|
79
|
+
# sudo backup --run postgresql-backup-s3
|
79
80
|
backup 'postgresql-backup-scp' do
|
80
81
|
|
81
82
|
adapter :postgresql do
|
@@ -89,6 +90,7 @@ backup 'postgresql-backup-scp' do
|
|
89
90
|
# port '80'
|
90
91
|
# socket '/tmp/socket.sock'
|
91
92
|
# end
|
93
|
+
# additional_options '--clean --blobs'
|
92
94
|
end
|
93
95
|
|
94
96
|
storage :scp do
|
@@ -105,7 +107,7 @@ end
|
|
105
107
|
|
106
108
|
|
107
109
|
# Initialize with:
|
108
|
-
#
|
110
|
+
# sudo backup --run archive-backup-ftp
|
109
111
|
backup 'archive-backup-ftp' do
|
110
112
|
|
111
113
|
adapter :archive do
|
@@ -127,7 +129,7 @@ end
|
|
127
129
|
|
128
130
|
|
129
131
|
# Initialize with:
|
130
|
-
#
|
132
|
+
# sudo backup --run custom-backup-sftp
|
131
133
|
backup 'custom-backup-sftp' do
|
132
134
|
|
133
135
|
adapter :custom do
|
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: 2.3.0
|
4
|
+
version: 2.3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
@@ -72,6 +72,16 @@ dependencies:
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: 1.2.5
|
74
74
|
version:
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: hirb
|
77
|
+
type: :runtime
|
78
|
+
version_requirement:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.2.9
|
84
|
+
version:
|
75
85
|
description: "\n Backup is a Ruby Gem written for Unix and Rails environments. It can be used both with and without the\n Ruby on Rails framework! This gem offers a quick and simple solution to backing up databases such as\n MySQL/PostgreSQL and Files/Folders. All backups can be transferred to Amazon S3 or any remote server you\n have access to, using either SCP, SFTP or regular FTP. Backup handles Compression, Archiving, Encryption\n and Backup Cleaning (Cycling).\n "
|
76
86
|
email: meskyan@gmail.com
|
77
87
|
executables:
|