backup 2.4.5.1 → 3.0.0.build.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.infinity_test +7 -0
- data/.rspec +3 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +88 -0
- data/LICENSE.md +24 -0
- data/README.md +189 -75
- data/backup.gemspec +41 -0
- data/bin/backup +161 -90
- data/lib/backup.rb +133 -117
- data/lib/backup/archive.rb +54 -0
- data/lib/backup/cli.rb +50 -0
- data/lib/backup/compressor/base.rb +17 -0
- data/lib/backup/compressor/gzip.rb +61 -0
- data/lib/backup/configuration/base.rb +7 -67
- data/lib/backup/configuration/compressor/base.rb +10 -0
- data/lib/backup/configuration/compressor/gzip.rb +23 -0
- data/lib/backup/configuration/database/base.rb +18 -0
- data/lib/backup/configuration/database/mongodb.rb +37 -0
- data/lib/backup/configuration/database/mysql.rb +37 -0
- data/lib/backup/configuration/database/postgresql.rb +37 -0
- data/lib/backup/configuration/database/redis.rb +35 -0
- data/lib/backup/configuration/encryptor/base.rb +10 -0
- data/lib/backup/configuration/encryptor/gpg.rb +17 -0
- data/lib/backup/configuration/encryptor/open_ssl.rb +26 -0
- data/lib/backup/configuration/helpers.rb +47 -17
- data/lib/backup/configuration/notifier/base.rb +39 -0
- data/lib/backup/configuration/notifier/mail.rb +52 -0
- data/lib/backup/configuration/storage/base.rb +18 -0
- data/lib/backup/configuration/storage/cloudfiles.rb +21 -0
- data/lib/backup/configuration/storage/dropbox.rb +25 -0
- data/lib/backup/configuration/storage/ftp.rb +25 -0
- data/lib/backup/configuration/storage/rsync.rb +25 -0
- data/lib/backup/configuration/storage/s3.rb +25 -0
- data/lib/backup/configuration/storage/scp.rb +25 -0
- data/lib/backup/configuration/storage/sftp.rb +25 -0
- data/lib/backup/database/base.rb +33 -0
- data/lib/backup/database/mongodb.rb +137 -0
- data/lib/backup/database/mysql.rb +104 -0
- data/lib/backup/database/postgresql.rb +111 -0
- data/lib/backup/database/redis.rb +105 -0
- data/lib/backup/encryptor/base.rb +17 -0
- data/lib/backup/encryptor/gpg.rb +78 -0
- data/lib/backup/encryptor/open_ssl.rb +67 -0
- data/lib/backup/finder.rb +39 -0
- data/lib/backup/logger.rb +80 -0
- data/lib/backup/model.rb +249 -0
- data/lib/backup/notifier/base.rb +29 -0
- data/lib/backup/notifier/binder.rb +32 -0
- data/lib/backup/notifier/mail.rb +141 -0
- data/lib/backup/notifier/templates/notify_failure.erb +31 -0
- data/lib/backup/notifier/templates/notify_success.erb +16 -0
- data/lib/backup/storage/base.rb +60 -3
- data/lib/backup/storage/cloudfiles.rb +85 -6
- data/lib/backup/storage/dropbox.rb +74 -4
- data/lib/backup/storage/ftp.rb +103 -27
- data/lib/backup/storage/object.rb +45 -0
- data/lib/backup/storage/rsync.rb +100 -0
- data/lib/backup/storage/s3.rb +100 -7
- data/lib/backup/storage/scp.rb +94 -19
- data/lib/backup/storage/sftp.rb +94 -19
- data/lib/backup/version.rb +70 -1
- data/lib/templates/archive +4 -0
- data/lib/templates/compressor/gzip +4 -0
- data/lib/templates/database/mongodb +10 -0
- data/lib/templates/database/mysql +11 -0
- data/lib/templates/database/postgresql +11 -0
- data/lib/templates/database/redis +10 -0
- data/lib/templates/encryptor/gpg +9 -0
- data/lib/templates/encryptor/openssl +5 -0
- data/lib/templates/notifier/mail +14 -0
- data/lib/templates/readme +15 -0
- data/lib/templates/storage/cloudfiles +7 -0
- data/lib/templates/storage/dropbox +8 -0
- data/lib/templates/storage/ftp +8 -0
- data/lib/templates/storage/rsync +7 -0
- data/lib/templates/storage/s3 +8 -0
- data/lib/templates/storage/scp +8 -0
- data/lib/templates/storage/sftp +8 -0
- data/spec/archive_spec.rb +53 -0
- data/spec/backup_spec.rb +11 -0
- data/spec/compressor/gzip_spec.rb +59 -0
- data/spec/configuration/base_spec.rb +35 -0
- data/spec/configuration/compressor/gzip_spec.rb +28 -0
- data/spec/configuration/database/base_spec.rb +16 -0
- data/spec/configuration/database/mongodb_spec.rb +30 -0
- data/spec/configuration/database/mysql_spec.rb +32 -0
- data/spec/configuration/database/postgresql_spec.rb +32 -0
- data/spec/configuration/database/redis_spec.rb +30 -0
- data/spec/configuration/encryptor/gpg_spec.rb +25 -0
- data/spec/configuration/encryptor/open_ssl_spec.rb +31 -0
- data/spec/configuration/notifier/mail_spec.rb +32 -0
- data/spec/configuration/storage/cloudfiles_spec.rb +34 -0
- data/spec/configuration/storage/dropbox_spec.rb +40 -0
- data/spec/configuration/storage/ftp_spec.rb +40 -0
- data/spec/configuration/storage/rsync_spec.rb +37 -0
- data/spec/configuration/storage/s3_spec.rb +37 -0
- data/spec/configuration/storage/scp_spec.rb +40 -0
- data/spec/configuration/storage/sftp_spec.rb +40 -0
- data/spec/database/base_spec.rb +30 -0
- data/spec/database/mongodb_spec.rb +144 -0
- data/spec/database/mysql_spec.rb +150 -0
- data/spec/database/postgresql_spec.rb +164 -0
- data/spec/database/redis_spec.rb +122 -0
- data/spec/encryptor/gpg_spec.rb +57 -0
- data/spec/encryptor/open_ssl_spec.rb +102 -0
- data/spec/logger_spec.rb +37 -0
- data/spec/model_spec.rb +236 -0
- data/spec/notifier/mail_spec.rb +97 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/storage/base_spec.rb +33 -0
- data/spec/storage/cloudfiles_spec.rb +102 -0
- data/spec/storage/dropbox_spec.rb +89 -0
- data/spec/storage/ftp_spec.rb +133 -0
- data/spec/storage/object_spec.rb +74 -0
- data/spec/storage/rsync_spec.rb +115 -0
- data/spec/storage/s3_spec.rb +110 -0
- data/spec/storage/scp_spec.rb +129 -0
- data/spec/storage/sftp_spec.rb +125 -0
- data/spec/version_spec.rb +32 -0
- metadata +139 -123
- data/CHANGELOG +0 -131
- data/LICENSE +0 -20
- data/generators/backup/backup_generator.rb +0 -69
- data/generators/backup/templates/backup.rake +0 -56
- data/generators/backup/templates/backup.rb +0 -253
- data/generators/backup/templates/create_backup_tables.rb +0 -18
- data/generators/backup_update/backup_update_generator.rb +0 -50
- data/generators/backup_update/templates/migrations/update_backup_tables.rb +0 -27
- data/lib/backup/adapters/archive.rb +0 -34
- data/lib/backup/adapters/base.rb +0 -167
- data/lib/backup/adapters/custom.rb +0 -41
- data/lib/backup/adapters/mongo_db.rb +0 -139
- data/lib/backup/adapters/mysql.rb +0 -60
- data/lib/backup/adapters/postgresql.rb +0 -60
- data/lib/backup/adapters/sqlite.rb +0 -25
- data/lib/backup/command_helper.rb +0 -14
- data/lib/backup/configuration/adapter.rb +0 -21
- data/lib/backup/configuration/adapter_options.rb +0 -8
- data/lib/backup/configuration/attributes.rb +0 -19
- data/lib/backup/configuration/mail.rb +0 -20
- data/lib/backup/configuration/smtp.rb +0 -8
- data/lib/backup/configuration/storage.rb +0 -8
- data/lib/backup/connection/cloudfiles.rb +0 -75
- data/lib/backup/connection/dropbox.rb +0 -63
- data/lib/backup/connection/s3.rb +0 -88
- data/lib/backup/core_ext/object.rb +0 -5
- data/lib/backup/environment/base.rb +0 -12
- data/lib/backup/environment/rails_configuration.rb +0 -15
- data/lib/backup/environment/unix_configuration.rb +0 -109
- data/lib/backup/mail/base.rb +0 -97
- data/lib/backup/mail/mail.txt +0 -7
- data/lib/backup/record/base.rb +0 -65
- data/lib/backup/record/cloudfiles.rb +0 -28
- data/lib/backup/record/dropbox.rb +0 -27
- data/lib/backup/record/ftp.rb +0 -39
- data/lib/backup/record/local.rb +0 -26
- data/lib/backup/record/s3.rb +0 -25
- data/lib/backup/record/scp.rb +0 -33
- data/lib/backup/record/sftp.rb +0 -38
- data/lib/backup/storage/local.rb +0 -22
- data/lib/generators/backup/USAGE +0 -10
- data/lib/generators/backup/backup_generator.rb +0 -47
- data/lib/generators/backup/templates/backup.rake +0 -56
- data/lib/generators/backup/templates/backup.rb +0 -236
- data/lib/generators/backup/templates/create_backup_tables.rb +0 -18
- data/setup/backup.rb +0 -257
- data/setup/backup.sqlite3 +0 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
4
|
+
|
5
|
+
def set_version(major, minor, patch, build)
|
6
|
+
Backup::Version.stubs(:major).returns(major)
|
7
|
+
Backup::Version.stubs(:minor).returns(minor)
|
8
|
+
Backup::Version.stubs(:patch).returns(patch)
|
9
|
+
Backup::Version.stubs(:build).returns(build)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe Backup::Version do
|
13
|
+
it 'should return a valid gemspec version' do
|
14
|
+
set_version(1,2,3,false)
|
15
|
+
Backup::Version.gemspec.should == '1.2.3'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'should return a valid gemspec version with a build' do
|
19
|
+
set_version(4,5,6,615)
|
20
|
+
Backup::Version.gemspec.should == '4.5.6.build.615'
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should return a nicer gemspec output' do
|
24
|
+
set_version(1,2,3,false)
|
25
|
+
Backup::Version.current.should == '1.2.3 / build 0'
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should return a nicer gemspec output with build' do
|
29
|
+
set_version(4,5,6,615)
|
30
|
+
Backup::Version.current.should == '4.5.6 / build 615'
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version:
|
4
|
+
prerelease: 6
|
5
|
+
version: 3.0.0.build.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael van Rooijen
|
@@ -10,125 +10,81 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-03-10 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: thor
|
18
18
|
prerelease: false
|
19
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 0.14.6
|
25
25
|
type: :runtime
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: fog
|
29
29
|
prerelease: false
|
30
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 0.5.3
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: dropbox
|
40
40
|
prerelease: false
|
41
41
|
requirement: &id003 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
46
|
+
version: 1.2.3
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: mail
|
51
51
|
prerelease: false
|
52
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 2.
|
57
|
+
version: 2.2.15
|
58
58
|
type: :runtime
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
|
-
name:
|
61
|
+
name: net-sftp
|
62
62
|
prerelease: false
|
63
63
|
requirement: &id005 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.0.5
|
69
69
|
type: :runtime
|
70
70
|
version_requirements: *id005
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: net-scp
|
73
73
|
prerelease: false
|
74
74
|
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
|
-
requirements:
|
77
|
-
- - ">="
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 0.2.9
|
80
|
-
type: :runtime
|
81
|
-
version_requirements: *id006
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: pony
|
84
|
-
prerelease: false
|
85
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: "0.5"
|
91
|
-
type: :runtime
|
92
|
-
version_requirements: *id007
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: cloudfiles
|
95
|
-
prerelease: false
|
96
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 1.4.7
|
102
|
-
type: :runtime
|
103
|
-
version_requirements: *id008
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: dropbox
|
106
|
-
prerelease: false
|
107
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 1.1.2
|
113
|
-
type: :runtime
|
114
|
-
version_requirements: *id009
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: fog
|
117
|
-
prerelease: false
|
118
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
119
75
|
none: false
|
120
76
|
requirements:
|
121
77
|
- - ~>
|
122
78
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.
|
79
|
+
version: 1.0.4
|
124
80
|
type: :runtime
|
125
|
-
version_requirements: *
|
81
|
+
version_requirements: *id006
|
126
82
|
description: |-
|
127
|
-
Backup is a
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
83
|
+
Backup is a RubyGem (for UNIX-like operating systems: Linux, Mac OSX) that allows you to configure and perform backups in a simple manner using an elegant Ruby DSL.
|
84
|
+
It supports various various databases (MySQL, PostgreSQL, MongoDB and Redis), it supports various storage locations
|
85
|
+
(Amazon S3, Rackspace Cloud Files, Dropbox, any remote server through FTP, SFTP, SCP and RSync), it can archive files and folders,
|
86
|
+
it can cycle backups, it can do incremental backups, it can compress backups, it can encrypt backups (OpenSSL or GPG),
|
87
|
+
it can notify you about successful and/or failed backups. It is very extensible and easy to add new functionality to. It's easy to use.
|
132
88
|
email: meskyanichi@gmail.com
|
133
89
|
executables:
|
134
90
|
- backup
|
@@ -137,68 +93,128 @@ extensions: []
|
|
137
93
|
extra_rdoc_files: []
|
138
94
|
|
139
95
|
files:
|
96
|
+
- .gitignore
|
97
|
+
- .infinity_test
|
98
|
+
- .rspec
|
99
|
+
- Gemfile
|
100
|
+
- Gemfile.lock
|
101
|
+
- LICENSE.md
|
140
102
|
- README.md
|
141
|
-
-
|
142
|
-
-
|
143
|
-
- lib/backup
|
144
|
-
- lib/backup/
|
145
|
-
- lib/backup/
|
146
|
-
- lib/backup/
|
147
|
-
- lib/backup/
|
148
|
-
- lib/backup/adapters/postgresql.rb
|
149
|
-
- lib/backup/adapters/sqlite.rb
|
150
|
-
- lib/backup/command_helper.rb
|
151
|
-
- lib/backup/configuration/adapter.rb
|
152
|
-
- lib/backup/configuration/adapter_options.rb
|
153
|
-
- lib/backup/configuration/attributes.rb
|
103
|
+
- backup.gemspec
|
104
|
+
- bin/backup
|
105
|
+
- lib/backup.rb
|
106
|
+
- lib/backup/archive.rb
|
107
|
+
- lib/backup/cli.rb
|
108
|
+
- lib/backup/compressor/base.rb
|
109
|
+
- lib/backup/compressor/gzip.rb
|
154
110
|
- lib/backup/configuration/base.rb
|
111
|
+
- lib/backup/configuration/compressor/base.rb
|
112
|
+
- lib/backup/configuration/compressor/gzip.rb
|
113
|
+
- lib/backup/configuration/database/base.rb
|
114
|
+
- lib/backup/configuration/database/mongodb.rb
|
115
|
+
- lib/backup/configuration/database/mysql.rb
|
116
|
+
- lib/backup/configuration/database/postgresql.rb
|
117
|
+
- lib/backup/configuration/database/redis.rb
|
118
|
+
- lib/backup/configuration/encryptor/base.rb
|
119
|
+
- lib/backup/configuration/encryptor/gpg.rb
|
120
|
+
- lib/backup/configuration/encryptor/open_ssl.rb
|
155
121
|
- lib/backup/configuration/helpers.rb
|
156
|
-
- lib/backup/configuration/
|
157
|
-
- lib/backup/configuration/
|
158
|
-
- lib/backup/configuration/storage.rb
|
159
|
-
- lib/backup/
|
160
|
-
- lib/backup/
|
161
|
-
- lib/backup/
|
162
|
-
- lib/backup/
|
163
|
-
- lib/backup/
|
164
|
-
- lib/backup/
|
165
|
-
- lib/backup/
|
166
|
-
- lib/backup/
|
167
|
-
- lib/backup/
|
168
|
-
- lib/backup/
|
169
|
-
- lib/backup/
|
170
|
-
- lib/backup/
|
171
|
-
- lib/backup/
|
172
|
-
- lib/backup/
|
173
|
-
- lib/backup/
|
174
|
-
- lib/backup/
|
175
|
-
- lib/backup/
|
122
|
+
- lib/backup/configuration/notifier/base.rb
|
123
|
+
- lib/backup/configuration/notifier/mail.rb
|
124
|
+
- lib/backup/configuration/storage/base.rb
|
125
|
+
- lib/backup/configuration/storage/cloudfiles.rb
|
126
|
+
- lib/backup/configuration/storage/dropbox.rb
|
127
|
+
- lib/backup/configuration/storage/ftp.rb
|
128
|
+
- lib/backup/configuration/storage/rsync.rb
|
129
|
+
- lib/backup/configuration/storage/s3.rb
|
130
|
+
- lib/backup/configuration/storage/scp.rb
|
131
|
+
- lib/backup/configuration/storage/sftp.rb
|
132
|
+
- lib/backup/database/base.rb
|
133
|
+
- lib/backup/database/mongodb.rb
|
134
|
+
- lib/backup/database/mysql.rb
|
135
|
+
- lib/backup/database/postgresql.rb
|
136
|
+
- lib/backup/database/redis.rb
|
137
|
+
- lib/backup/encryptor/base.rb
|
138
|
+
- lib/backup/encryptor/gpg.rb
|
139
|
+
- lib/backup/encryptor/open_ssl.rb
|
140
|
+
- lib/backup/finder.rb
|
141
|
+
- lib/backup/logger.rb
|
142
|
+
- lib/backup/model.rb
|
143
|
+
- lib/backup/notifier/base.rb
|
144
|
+
- lib/backup/notifier/binder.rb
|
145
|
+
- lib/backup/notifier/mail.rb
|
146
|
+
- lib/backup/notifier/templates/notify_failure.erb
|
147
|
+
- lib/backup/notifier/templates/notify_success.erb
|
176
148
|
- lib/backup/storage/base.rb
|
177
149
|
- lib/backup/storage/cloudfiles.rb
|
178
150
|
- lib/backup/storage/dropbox.rb
|
179
151
|
- lib/backup/storage/ftp.rb
|
180
|
-
- lib/backup/storage/
|
152
|
+
- lib/backup/storage/object.rb
|
153
|
+
- lib/backup/storage/rsync.rb
|
181
154
|
- lib/backup/storage/s3.rb
|
182
155
|
- lib/backup/storage/scp.rb
|
183
156
|
- lib/backup/storage/sftp.rb
|
184
157
|
- lib/backup/version.rb
|
185
|
-
- lib/
|
186
|
-
- lib/
|
187
|
-
- lib/
|
188
|
-
- lib/
|
189
|
-
- lib/
|
190
|
-
- lib/
|
191
|
-
-
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
197
|
-
-
|
198
|
-
-
|
199
|
-
-
|
158
|
+
- lib/templates/archive
|
159
|
+
- lib/templates/compressor/gzip
|
160
|
+
- lib/templates/database/mongodb
|
161
|
+
- lib/templates/database/mysql
|
162
|
+
- lib/templates/database/postgresql
|
163
|
+
- lib/templates/database/redis
|
164
|
+
- lib/templates/encryptor/gpg
|
165
|
+
- lib/templates/encryptor/openssl
|
166
|
+
- lib/templates/notifier/mail
|
167
|
+
- lib/templates/readme
|
168
|
+
- lib/templates/storage/cloudfiles
|
169
|
+
- lib/templates/storage/dropbox
|
170
|
+
- lib/templates/storage/ftp
|
171
|
+
- lib/templates/storage/rsync
|
172
|
+
- lib/templates/storage/s3
|
173
|
+
- lib/templates/storage/scp
|
174
|
+
- lib/templates/storage/sftp
|
175
|
+
- spec/archive_spec.rb
|
176
|
+
- spec/backup_spec.rb
|
177
|
+
- spec/compressor/gzip_spec.rb
|
178
|
+
- spec/configuration/base_spec.rb
|
179
|
+
- spec/configuration/compressor/gzip_spec.rb
|
180
|
+
- spec/configuration/database/base_spec.rb
|
181
|
+
- spec/configuration/database/mongodb_spec.rb
|
182
|
+
- spec/configuration/database/mysql_spec.rb
|
183
|
+
- spec/configuration/database/postgresql_spec.rb
|
184
|
+
- spec/configuration/database/redis_spec.rb
|
185
|
+
- spec/configuration/encryptor/gpg_spec.rb
|
186
|
+
- spec/configuration/encryptor/open_ssl_spec.rb
|
187
|
+
- spec/configuration/notifier/mail_spec.rb
|
188
|
+
- spec/configuration/storage/cloudfiles_spec.rb
|
189
|
+
- spec/configuration/storage/dropbox_spec.rb
|
190
|
+
- spec/configuration/storage/ftp_spec.rb
|
191
|
+
- spec/configuration/storage/rsync_spec.rb
|
192
|
+
- spec/configuration/storage/s3_spec.rb
|
193
|
+
- spec/configuration/storage/scp_spec.rb
|
194
|
+
- spec/configuration/storage/sftp_spec.rb
|
195
|
+
- spec/database/base_spec.rb
|
196
|
+
- spec/database/mongodb_spec.rb
|
197
|
+
- spec/database/mysql_spec.rb
|
198
|
+
- spec/database/postgresql_spec.rb
|
199
|
+
- spec/database/redis_spec.rb
|
200
|
+
- spec/encryptor/gpg_spec.rb
|
201
|
+
- spec/encryptor/open_ssl_spec.rb
|
202
|
+
- spec/logger_spec.rb
|
203
|
+
- spec/model_spec.rb
|
204
|
+
- spec/notifier/mail_spec.rb
|
205
|
+
- spec/spec_helper.rb
|
206
|
+
- spec/storage/base_spec.rb
|
207
|
+
- spec/storage/cloudfiles_spec.rb
|
208
|
+
- spec/storage/dropbox_spec.rb
|
209
|
+
- spec/storage/ftp_spec.rb
|
210
|
+
- spec/storage/object_spec.rb
|
211
|
+
- spec/storage/rsync_spec.rb
|
212
|
+
- spec/storage/s3_spec.rb
|
213
|
+
- spec/storage/scp_spec.rb
|
214
|
+
- spec/storage/sftp_spec.rb
|
215
|
+
- spec/version_spec.rb
|
200
216
|
has_rdoc: true
|
201
|
-
homepage: http://
|
217
|
+
homepage: http://rubygems.org/gems/backup
|
202
218
|
licenses: []
|
203
219
|
|
204
220
|
post_install_message:
|
@@ -215,15 +231,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
232
|
none: false
|
217
233
|
requirements:
|
218
|
-
- - "
|
234
|
+
- - ">"
|
219
235
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
236
|
+
version: 1.3.1
|
221
237
|
requirements: []
|
222
238
|
|
223
239
|
rubyforge_project:
|
224
|
-
rubygems_version: 1.
|
240
|
+
rubygems_version: 1.6.1
|
225
241
|
signing_key:
|
226
242
|
specification_version: 3
|
227
|
-
summary: Backup is a
|
243
|
+
summary: "Backup is a RubyGem (for UNIX-like operating systems: Linux, Mac OSX) that allows you to configure and perform backups in a simple manner using an elegant Ruby DSL."
|
228
244
|
test_files: []
|
229
245
|
|
data/CHANGELOG
DELETED
@@ -1,131 +0,0 @@
|
|
1
|
-
UPDATE
|
2
|
-
=== 2.4.1 ======================================
|
3
|
-
|
4
|
-
Dropbox storage added.
|
5
|
-
|
6
|
-
|
7
|
-
BIG UPDATE
|
8
|
-
=== 2.4.0 =======================================
|
9
|
-
|
10
|
-
Ruby on Rails 3 support
|
11
|
-
|
12
|
-
|
13
|
-
PATCH
|
14
|
-
=== 2.3.3.1 =====================================
|
15
|
-
|
16
|
-
Fixes an issue when trying to use S3. It would try to create a bucket
|
17
|
-
when one already exists and this raises an error.
|
18
|
-
|
19
|
-
|
20
|
-
UPDATE
|
21
|
-
=== 2.3.3 =======================================
|
22
|
-
|
23
|
-
Set final_file to encrypted_file only when encryption is used.
|
24
|
-
|
25
|
-
|
26
|
-
UPDATE
|
27
|
-
=== 2.3.2 =======================================
|
28
|
-
|
29
|
-
- Only load 'pony' and 'optparse' when they need to be utilized.
|
30
|
-
- Only uses 'sudo' if BACKUP_PATH is not writable by current user.
|
31
|
-
- With Cloud Files storage, it will automatically create the bucket if it does not yet exist.
|
32
|
-
- Backup's logger will now display the current time when logging. Now also indicates what S3 bucket it
|
33
|
-
is being backed up to, as well as what the filename is.
|
34
|
-
- Backup now supports GPG public key encryption which is a new and more safe way to encrypt your data.
|
35
|
-
|
36
|
-
|
37
|
-
MINOR UPDATE
|
38
|
-
=== 2.3.2.pre3 ==================================
|
39
|
-
|
40
|
-
- Added support for Rackspace Cloud Files. Backups can now also be stored in Rackspace Cloud Files.
|
41
|
-
|
42
|
-
|
43
|
-
MINOR UPDATE
|
44
|
-
=== 2.3.2.pre2 ==================================
|
45
|
-
|
46
|
-
- Added support for Amazon S3 EEUU and European buckets.
|
47
|
-
|
48
|
-
|
49
|
-
BIG UPDATE
|
50
|
-
=== 2.3.2.pre ==================================
|
51
|
-
|
52
|
-
- Added Storage Method: Local
|
53
|
-
- Added Adapter: SQLite
|
54
|
-
- exclude option added for Archive Adapter
|
55
|
-
- Internal cleanup
|
56
|
-
- Will try to automatically determine the path to mysqldump and pg_dump utilities
|
57
|
-
- Option to specify which tables to include for the backup
|
58
|
-
- The ability to specify a custom backup (unix environment) installation folder with ENV['BACKUP_PATH']
|
59
|
-
- Fixed dependency issue with SQLite3 Ruby Driver (must be 1.2.5)
|
60
|
-
- Removed Jeweler from Backup, the Gemspec should be manually updated from now on.
|
61
|
-
- Added spec/tests
|
62
|
-
|
63
|
-
|
64
|
-
MINOR UPDATE
|
65
|
-
=== 2.3.1 ======================================
|
66
|
-
|
67
|
-
- Added Feature: Email notifications
|
68
|
-
|
69
|
-
|
70
|
-
PATCH
|
71
|
-
=== 2.3.0.3 ====================================
|
72
|
-
|
73
|
-
- Small bug was patched. Error would occur when a list of triggers should be shown
|
74
|
-
|
75
|
-
|
76
|
-
BIG UPDATE
|
77
|
-
=== 2.3.0 ====================================
|
78
|
-
|
79
|
-
- Backup became independent of Ruby on Rails
|
80
|
-
- Backup now supports multiple environments: Rails and Unix
|
81
|
-
- Backup is now executable through the command-line when using the Unix environment
|
82
|
-
|
83
|
-
|
84
|
-
SMALL FEATURE UPDATE
|
85
|
-
=== 2.2.1 ====================================
|
86
|
-
|
87
|
-
- use_ssl option added for S3 Storage Method
|
88
|
-
- additional_options option added for MySQL and PostgreSQL Adapters
|
89
|
-
|
90
|
-
|
91
|
-
PRETTY BIG UPDATE
|
92
|
-
=== 2.2.0 ====================================
|
93
|
-
|
94
|
-
- Added Storage Methods: FTP and SFTP
|
95
|
-
- Added Adapters: PostgreSQL and Custom
|
96
|
-
- Added more options to the MySQL Adapter
|
97
|
-
- A couple of bug fixes
|
98
|
-
|
99
|
-
|
100
|
-
MINOR UPDATE
|
101
|
-
=== 2.1.2 ====================================
|
102
|
-
|
103
|
-
- The backup generator will now provide you with a step-by-step guide to getting up and running
|
104
|
-
- Updated the generator itself
|
105
|
-
- Removed SQLite3 dependencies
|
106
|
-
|
107
|
-
|
108
|
-
2 TABLES 2 1
|
109
|
-
=== 2.1.1 ====================================
|
110
|
-
|
111
|
-
- Backup will from now on only utilize one table, instead of one for each storage method
|
112
|
-
- Still backwards compatible to 2.1.0
|
113
|
-
|
114
|
-
|
115
|
-
FIXED A CRUCIAL BUG
|
116
|
-
=== 2.1.0 ====================================
|
117
|
-
|
118
|
-
- Problem with Backup::Record. It tried to connect to the SQLite3 database.
|
119
|
-
|
120
|
-
|
121
|
-
MAJOR RELEASE
|
122
|
-
=== 2.0.0 ====================================
|
123
|
-
|
124
|
-
- Should be a lot more backwards compatible with every update I do.
|
125
|
-
- Does not depend on the separate local SQLite3 file any longer.
|
126
|
-
- Will provide a db migration file for your Rails Application to store backup record data in.
|
127
|
-
- Does not use YAML files to do configuration any longer.
|
128
|
-
- Uses a SINGLE ruby file for "all" configuration (config/backup.rb) using elegant block notations!
|
129
|
-
- Uses a SINGLE rake task to handle the initialization of any backup setting.
|
130
|
-
- Can now configure an unlimited amount of customizable backup settings and run them each "individually"!
|
131
|
-
- HIGHLY IMPROVED USABILITY!
|