backup 3.0.2 → 3.0.3.build.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/backup +12 -190
- metadata +7 -191
- data/.gitignore +0 -2
- data/.infinity_test +0 -7
- data/.rspec +0 -3
- data/Gemfile +0 -17
- data/Gemfile.lock +0 -88
- data/LICENSE.md +0 -24
- data/README.md +0 -236
- data/backup.gemspec +0 -41
- data/lib/backup.rb +0 -148
- data/lib/backup/archive.rb +0 -54
- data/lib/backup/cli.rb +0 -50
- data/lib/backup/compressor/base.rb +0 -17
- data/lib/backup/compressor/gzip.rb +0 -61
- data/lib/backup/configuration/base.rb +0 -15
- data/lib/backup/configuration/compressor/base.rb +0 -10
- data/lib/backup/configuration/compressor/gzip.rb +0 -23
- data/lib/backup/configuration/database/base.rb +0 -18
- data/lib/backup/configuration/database/mongodb.rb +0 -37
- data/lib/backup/configuration/database/mysql.rb +0 -37
- data/lib/backup/configuration/database/postgresql.rb +0 -37
- data/lib/backup/configuration/database/redis.rb +0 -35
- data/lib/backup/configuration/encryptor/base.rb +0 -10
- data/lib/backup/configuration/encryptor/gpg.rb +0 -17
- data/lib/backup/configuration/encryptor/open_ssl.rb +0 -26
- data/lib/backup/configuration/helpers.rb +0 -54
- data/lib/backup/configuration/notifier/base.rb +0 -39
- data/lib/backup/configuration/notifier/mail.rb +0 -52
- data/lib/backup/configuration/storage/base.rb +0 -18
- data/lib/backup/configuration/storage/cloudfiles.rb +0 -21
- data/lib/backup/configuration/storage/dropbox.rb +0 -25
- data/lib/backup/configuration/storage/ftp.rb +0 -25
- data/lib/backup/configuration/storage/rsync.rb +0 -25
- data/lib/backup/configuration/storage/s3.rb +0 -25
- data/lib/backup/configuration/storage/scp.rb +0 -25
- data/lib/backup/configuration/storage/sftp.rb +0 -25
- data/lib/backup/database/base.rb +0 -33
- data/lib/backup/database/mongodb.rb +0 -137
- data/lib/backup/database/mysql.rb +0 -104
- data/lib/backup/database/postgresql.rb +0 -111
- data/lib/backup/database/redis.rb +0 -105
- data/lib/backup/encryptor/base.rb +0 -17
- data/lib/backup/encryptor/gpg.rb +0 -78
- data/lib/backup/encryptor/open_ssl.rb +0 -67
- data/lib/backup/finder.rb +0 -39
- data/lib/backup/logger.rb +0 -80
- data/lib/backup/model.rb +0 -249
- data/lib/backup/notifier/base.rb +0 -29
- data/lib/backup/notifier/binder.rb +0 -32
- data/lib/backup/notifier/mail.rb +0 -141
- data/lib/backup/notifier/templates/notify_failure.erb +0 -31
- data/lib/backup/notifier/templates/notify_success.erb +0 -16
- data/lib/backup/storage/base.rb +0 -67
- data/lib/backup/storage/cloudfiles.rb +0 -95
- data/lib/backup/storage/dropbox.rb +0 -82
- data/lib/backup/storage/ftp.rb +0 -114
- data/lib/backup/storage/object.rb +0 -45
- data/lib/backup/storage/rsync.rb +0 -100
- data/lib/backup/storage/s3.rb +0 -108
- data/lib/backup/storage/scp.rb +0 -105
- data/lib/backup/storage/sftp.rb +0 -106
- data/lib/backup/version.rb +0 -72
- data/lib/templates/archive +0 -4
- data/lib/templates/compressor/gzip +0 -4
- data/lib/templates/database/mongodb +0 -10
- data/lib/templates/database/mysql +0 -11
- data/lib/templates/database/postgresql +0 -11
- data/lib/templates/database/redis +0 -10
- data/lib/templates/encryptor/gpg +0 -9
- data/lib/templates/encryptor/openssl +0 -5
- data/lib/templates/notifier/mail +0 -14
- data/lib/templates/readme +0 -15
- data/lib/templates/storage/cloudfiles +0 -7
- data/lib/templates/storage/dropbox +0 -8
- data/lib/templates/storage/ftp +0 -8
- data/lib/templates/storage/rsync +0 -7
- data/lib/templates/storage/s3 +0 -8
- data/lib/templates/storage/scp +0 -8
- data/lib/templates/storage/sftp +0 -8
- data/spec/archive_spec.rb +0 -53
- data/spec/backup_spec.rb +0 -11
- data/spec/compressor/gzip_spec.rb +0 -59
- data/spec/configuration/base_spec.rb +0 -35
- data/spec/configuration/compressor/gzip_spec.rb +0 -28
- data/spec/configuration/database/base_spec.rb +0 -16
- data/spec/configuration/database/mongodb_spec.rb +0 -30
- data/spec/configuration/database/mysql_spec.rb +0 -32
- data/spec/configuration/database/postgresql_spec.rb +0 -32
- data/spec/configuration/database/redis_spec.rb +0 -30
- data/spec/configuration/encryptor/gpg_spec.rb +0 -25
- data/spec/configuration/encryptor/open_ssl_spec.rb +0 -31
- data/spec/configuration/notifier/mail_spec.rb +0 -32
- data/spec/configuration/storage/cloudfiles_spec.rb +0 -34
- data/spec/configuration/storage/dropbox_spec.rb +0 -40
- data/spec/configuration/storage/ftp_spec.rb +0 -40
- data/spec/configuration/storage/rsync_spec.rb +0 -37
- data/spec/configuration/storage/s3_spec.rb +0 -37
- data/spec/configuration/storage/scp_spec.rb +0 -40
- data/spec/configuration/storage/sftp_spec.rb +0 -40
- data/spec/database/base_spec.rb +0 -30
- data/spec/database/mongodb_spec.rb +0 -144
- data/spec/database/mysql_spec.rb +0 -150
- data/spec/database/postgresql_spec.rb +0 -164
- data/spec/database/redis_spec.rb +0 -122
- data/spec/encryptor/gpg_spec.rb +0 -57
- data/spec/encryptor/open_ssl_spec.rb +0 -102
- data/spec/logger_spec.rb +0 -37
- data/spec/model_spec.rb +0 -236
- data/spec/notifier/mail_spec.rb +0 -97
- data/spec/spec_helper.rb +0 -21
- data/spec/storage/base_spec.rb +0 -33
- data/spec/storage/cloudfiles_spec.rb +0 -102
- data/spec/storage/dropbox_spec.rb +0 -89
- data/spec/storage/ftp_spec.rb +0 -133
- data/spec/storage/object_spec.rb +0 -74
- data/spec/storage/rsync_spec.rb +0 -115
- data/spec/storage/s3_spec.rb +0 -110
- data/spec/storage/scp_spec.rb +0 -129
- data/spec/storage/sftp_spec.rb +0 -125
- data/spec/version_spec.rb +0 -32
data/bin/backup
CHANGED
@@ -1,192 +1,14 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
puts 'Please install Thor first: `gem install thor`'
|
16
|
-
end
|
17
|
-
|
18
|
-
##
|
19
|
-
# Load the Backup source
|
20
|
-
require File.expand_path("../../lib/backup", __FILE__)
|
21
|
-
|
22
|
-
##
|
23
|
-
# Build the Backup Command Line Interface using Thor
|
24
|
-
class BackupCLI < Thor
|
25
|
-
include Thor::Actions
|
26
|
-
|
27
|
-
TEMPLATE_DIR = File.expand_path("../../lib/templates", __FILE__)
|
28
|
-
|
29
|
-
##
|
30
|
-
# [Perform]
|
31
|
-
# Performs the backup process. The only required option is the --trigger [-t].
|
32
|
-
# If the other options (--config_file, --data_path, --tmp_path) aren't specified
|
33
|
-
# it'll fallback to the (good) defaults
|
34
|
-
method_option :trigger, :type => :string, :aliases => '-t', :required => true
|
35
|
-
method_option :config_file, :type => :string, :aliases => '-c'
|
36
|
-
method_option :data_path, :type => :string, :aliases => '-d'
|
37
|
-
method_option :log_path, :type => :string, :aliases => '-l'
|
38
|
-
method_option :tmp_path, :type => :string
|
39
|
-
desc 'perform', 'Performs the backup for the specified trigger'
|
40
|
-
def perform
|
41
|
-
|
42
|
-
##
|
43
|
-
# Defines the TRIGGER and TIME constants
|
44
|
-
Backup.send(:const_set, :TRIGGER, options[:trigger])
|
45
|
-
Backup.send(:const_set, :TIME, Time.now.strftime("%Y.%m.%d.%H.%M.%S"))
|
46
|
-
|
47
|
-
##
|
48
|
-
# Overwrites the CONFIG_FILE location, if --config-file was specified
|
49
|
-
if options[:config_file]
|
50
|
-
Backup.send(:remove_const, :CONFIG_FILE)
|
51
|
-
Backup.send(:const_set, :CONFIG_FILE, options[:config_file])
|
52
|
-
end
|
53
|
-
|
54
|
-
##
|
55
|
-
# Overwrites the DATA_PATH location, if --data-path was specified
|
56
|
-
if options[:data_path]
|
57
|
-
Backup.send(:remove_const, :DATA_PATH)
|
58
|
-
Backup.send(:const_set, :DATA_PATH, options[:data_path])
|
59
|
-
end
|
60
|
-
|
61
|
-
##
|
62
|
-
# Overwrites the LOG_PATH location, if --log-path was specified
|
63
|
-
if options[:log_path]
|
64
|
-
Backup.send(:remove_const, :LOG_PATH)
|
65
|
-
Backup.send(:const_set, :LOG_PATH, options[:log_path])
|
66
|
-
end
|
67
|
-
|
68
|
-
##
|
69
|
-
# Overwrites the TMP_PATH location, if --tmp-path was specified
|
70
|
-
if options[:tmp_path]
|
71
|
-
Backup.send(:remove_const, :TMP_PATH)
|
72
|
-
Backup.send(:const_set, :TMP_PATH, options[:tmp_path])
|
73
|
-
end
|
74
|
-
|
75
|
-
##
|
76
|
-
# Ensure the TMP_PATH, LOG_PATH, DATA_PATH and DATA_PATH/TRIGGER
|
77
|
-
# are created if they do not yet exist
|
78
|
-
Array.new([
|
79
|
-
Backup::TMP_PATH,
|
80
|
-
Backup::LOG_PATH,
|
81
|
-
File.join(Backup::DATA_PATH, Backup::TRIGGER)
|
82
|
-
]).each do |path|
|
83
|
-
FileUtils.mkdir_p(path)
|
84
|
-
end
|
85
|
-
|
86
|
-
##
|
87
|
-
# Parses the backup configuration file and returns the model instance by trigger
|
88
|
-
model = Backup::Finder.new(Backup::TRIGGER, Backup::CONFIG_FILE).find
|
89
|
-
|
90
|
-
##
|
91
|
-
# Runs the returned model
|
92
|
-
Backup::Logger.message "Performing backup for #{model.label}!"
|
93
|
-
model.perform!
|
94
|
-
end
|
95
|
-
|
96
|
-
##
|
97
|
-
# [Generate]
|
98
|
-
# Generates a configuration file based on the arguments passed in.
|
99
|
-
# For example, running $ backup generate --databases='mongodb' will generate a pre-populated
|
100
|
-
# configuration file with a base MongoDB setup
|
101
|
-
desc 'generate', 'Generates configuration blocks based on the arguments you pass in'
|
102
|
-
method_option :path, :type => :string
|
103
|
-
method_option :databases, :type => :string
|
104
|
-
method_option :storages, :type => :string
|
105
|
-
method_option :encryptors, :type => :string
|
106
|
-
method_option :compressors, :type => :string
|
107
|
-
method_option :notifiers, :type => :string
|
108
|
-
method_option :archives, :type => :boolean
|
109
|
-
def generate
|
110
|
-
temp_file = Tempfile.new('backup.rb')
|
111
|
-
temp_file << File.read( File.join(TEMPLATE_DIR, 'readme') )
|
112
|
-
temp_file << "Backup::Model.new(:my_backup, 'My Backup') do\n\n"
|
113
|
-
|
114
|
-
if options[:archives]
|
115
|
-
temp_file << File.read( File.join(TEMPLATE_DIR, 'archive') ) + "\n\n"
|
116
|
-
end
|
117
|
-
|
118
|
-
[:databases, :storages, :encryptors, :compressors, :notifiers].each do |item|
|
119
|
-
if options[item]
|
120
|
-
options[item].split(',').map(&:strip).uniq.each do |entry|
|
121
|
-
if File.exist?( File.join(TEMPLATE_DIR, item.to_s[0..-2], entry) )
|
122
|
-
temp_file << File.read( File.join(TEMPLATE_DIR, item.to_s[0..-2], entry) ) + "\n\n"
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
temp_file << "end\n\n"
|
129
|
-
temp_file.close
|
130
|
-
if options[:path]
|
131
|
-
FileUtils.mkdir_p(options[:path])
|
132
|
-
overwrite?(File.join(Backup::PATH, 'config.rb'))
|
133
|
-
File.open(File.join(options[:path], 'config.rb'), 'w') do |file|
|
134
|
-
file.write( File.read(temp_file.path) )
|
135
|
-
puts "Generated configuration file in '#{File.join(options[:path], 'config.rb')}'"
|
136
|
-
end
|
137
|
-
else
|
138
|
-
FileUtils.mkdir_p(Backup::PATH)
|
139
|
-
overwrite?(File.join(Backup::PATH, 'config.rb'))
|
140
|
-
File.open(File.join(Backup::PATH, 'config.rb'), 'w') do |file|
|
141
|
-
file.write( File.read(temp_file.path) )
|
142
|
-
puts "Generated configuration file in '#{File.join(Backup::PATH, 'config.rb')}'"
|
143
|
-
end
|
144
|
-
end
|
145
|
-
temp_file.unlink
|
146
|
-
end
|
147
|
-
|
148
|
-
##
|
149
|
-
# [Decrypt]
|
150
|
-
# Shorthand for decrypting encrypted files
|
151
|
-
desc 'decrypt', 'Decrypts encrypted files'
|
152
|
-
method_option :encryptor, :type => :string, :required => true
|
153
|
-
method_option :in, :type => :string, :required => true
|
154
|
-
method_option :out, :type => :string, :required => true
|
155
|
-
method_option :base64, :type => :boolean, :default => false
|
156
|
-
def decrypt
|
157
|
-
case options[:encryptor].downcase
|
158
|
-
when 'openssl'
|
159
|
-
base64 = options[:base64] ? '-base64' : ''
|
160
|
-
%x[openssl aes-256-cbc -d #{base64} -in '#{options[:in]}' -out '#{options[:out]}']
|
161
|
-
when 'gpg'
|
162
|
-
%x[gpg -o '#{options[:out]}' -d '#{options[:in]}']
|
163
|
-
else
|
164
|
-
puts "Unknown encryptor: #{options[:encryptor]}"
|
165
|
-
puts "Use either 'openssl' or 'gpg'"
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
##
|
170
|
-
# [Version]
|
171
|
-
# Returns the current version of the Backup gem
|
172
|
-
map '-v' => :version
|
173
|
-
desc 'version', 'Display installed Backup version'
|
174
|
-
def version
|
175
|
-
puts "Backup #{Backup::Version.current}"
|
176
|
-
end
|
177
|
-
|
178
|
-
private
|
179
|
-
|
180
|
-
##
|
181
|
-
# Helper method for asking the user if he/she wants to overwrite the file
|
182
|
-
def overwrite?(path)
|
183
|
-
if File.exist?(path)
|
184
|
-
exit if no? "A configuration file already exists in #{ path }. Do you want to overwrite? [y/n]"
|
185
|
-
end
|
186
|
-
end
|
187
|
-
|
188
|
-
end
|
189
|
-
|
190
|
-
##
|
191
|
-
# Enable the CLI for the Backup binary
|
192
|
-
BackupCLI.start
|
3
|
+
puts
|
4
|
+
puts
|
5
|
+
puts "Backup"
|
6
|
+
puts "-------------------------------------------------"
|
7
|
+
puts "I've stopped releasing builds for the Backup gem."
|
8
|
+
puts "To get the latest Backup versions, please issue the following command from now on:"
|
9
|
+
puts
|
10
|
+
puts "\s\sgem install backup"
|
11
|
+
puts
|
12
|
+
puts "Thanks!"
|
13
|
+
puts "https://github.com/meskyanichi/backup"
|
14
|
+
exit
|
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: 3.0.
|
4
|
+
prerelease: 6
|
5
|
+
version: 3.0.3.build.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael van Rooijen
|
@@ -10,75 +10,10 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-12 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
|
-
dependencies:
|
16
|
-
|
17
|
-
name: thor
|
18
|
-
prerelease: false
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
|
-
requirements:
|
22
|
-
- - ~>
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: 0.14.6
|
25
|
-
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: fog
|
29
|
-
prerelease: false
|
30
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
|
-
requirements:
|
33
|
-
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 0.5.3
|
36
|
-
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: dropbox
|
40
|
-
prerelease: false
|
41
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 1.2.3
|
47
|
-
type: :runtime
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: mail
|
51
|
-
prerelease: false
|
52
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 2.2.15
|
58
|
-
type: :runtime
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: net-sftp
|
62
|
-
prerelease: false
|
63
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
|
-
requirements:
|
66
|
-
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 2.0.5
|
69
|
-
type: :runtime
|
70
|
-
version_requirements: *id005
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: net-scp
|
73
|
-
prerelease: false
|
74
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
|
-
requirements:
|
77
|
-
- - ~>
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 1.0.4
|
80
|
-
type: :runtime
|
81
|
-
version_requirements: *id006
|
15
|
+
dependencies: []
|
16
|
+
|
82
17
|
description: |-
|
83
18
|
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
19
|
It supports various databases (MySQL, PostgreSQL, MongoDB and Redis), it supports various storage locations
|
@@ -93,126 +28,7 @@ extensions: []
|
|
93
28
|
extra_rdoc_files: []
|
94
29
|
|
95
30
|
files:
|
96
|
-
- .gitignore
|
97
|
-
- .infinity_test
|
98
|
-
- .rspec
|
99
|
-
- Gemfile
|
100
|
-
- Gemfile.lock
|
101
|
-
- LICENSE.md
|
102
|
-
- README.md
|
103
|
-
- backup.gemspec
|
104
31
|
- 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
|
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
|
121
|
-
- lib/backup/configuration/helpers.rb
|
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
|
148
|
-
- lib/backup/storage/base.rb
|
149
|
-
- lib/backup/storage/cloudfiles.rb
|
150
|
-
- lib/backup/storage/dropbox.rb
|
151
|
-
- lib/backup/storage/ftp.rb
|
152
|
-
- lib/backup/storage/object.rb
|
153
|
-
- lib/backup/storage/rsync.rb
|
154
|
-
- lib/backup/storage/s3.rb
|
155
|
-
- lib/backup/storage/scp.rb
|
156
|
-
- lib/backup/storage/sftp.rb
|
157
|
-
- lib/backup/version.rb
|
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
|
216
32
|
has_rdoc: true
|
217
33
|
homepage: http://rubygems.org/gems/backup
|
218
34
|
licenses: []
|
@@ -231,9 +47,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
48
|
none: false
|
233
49
|
requirements:
|
234
|
-
- - "
|
50
|
+
- - ">"
|
235
51
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
52
|
+
version: 1.3.1
|
237
53
|
requirements: []
|
238
54
|
|
239
55
|
rubyforge_project:
|
data/.gitignore
DELETED
data/.infinity_test
DELETED
data/.rspec
DELETED
data/Gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# RubyGems Source
|
3
|
-
source 'http://rubygems.org'
|
4
|
-
|
5
|
-
##
|
6
|
-
# Bundle gems definde inside the gemspec file
|
7
|
-
gemspec
|
8
|
-
|
9
|
-
##
|
10
|
-
# Define gems to be used in the 'test' environment
|
11
|
-
group :test do
|
12
|
-
gem 'rspec'
|
13
|
-
gem 'mocha'
|
14
|
-
gem 'infinity_test'
|
15
|
-
gem 'fuubar'
|
16
|
-
gem 'timecop'
|
17
|
-
end
|