s3_db_assets_backup 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +14 -13
- data/{generators/s3_backup/templates → config/initializers}/load_s3_backup_config.rb +0 -0
- data/{generators → lib/generators}/s3_backup/USAGE +0 -0
- data/lib/generators/s3_backup/s3_backup_generator.rb +11 -0
- data/{generators → lib/generators}/s3_backup/templates/s3_backup_config.yml +0 -0
- data/lib/s3_db_assets_backup/engine.rb +12 -0
- data/{generators/s3_backup/templates → lib/s3_db_assets_backup/railties}/assets_backup.rake +1 -1
- data/{generators/s3_backup/templates → lib/s3_db_assets_backup/railties}/db_backup.rake +1 -1
- data/lib/s3_db_assets_backup.rb +1 -0
- metadata +15 -15
- data/MIT-LICENSE +0 -20
- data/Rakefile +0 -12
- data/generators/s3_backup/s3_backup_generator.rb +0 -10
- data/s3_db_assets_backup.gemspec +0 -26
data/README.rdoc
CHANGED
@@ -4,22 +4,23 @@ Generates rake tasks for backing up and restoring your database and public folde
|
|
4
4
|
|
5
5
|
== Install
|
6
6
|
|
7
|
-
|
7
|
+
Edit your Gemfile to include the following
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
gem "s3_db_assets_backup"
|
10
|
+
gem "aws-s3"
|
11
|
+
|
12
|
+
Then run
|
12
13
|
|
13
|
-
|
14
|
+
bundle install
|
14
15
|
|
15
|
-
gem install aws-s3
|
16
|
-
|
17
16
|
Create the backup rake tasks, config file, and initializer.
|
18
17
|
|
19
|
-
|
18
|
+
rails g s3_backup
|
20
19
|
|
21
20
|
Edit config/s3_backup_config.yml with your aws credentials.
|
22
21
|
|
22
|
+
Rails 2.x (switch to the rails_2.x branch)
|
23
|
+
|
23
24
|
== Usage
|
24
25
|
|
25
26
|
Backup the production database.
|
@@ -54,12 +55,12 @@ You need to create a tmp directory in the project root.
|
|
54
55
|
|
55
56
|
mkdir tmp
|
56
57
|
|
57
|
-
|
58
|
+
<b>I get "broken pipe" when running the backup</b>
|
58
59
|
|
59
|
-
|
60
|
+
You need to create the S3 bucket you're trying to backup to.
|
60
61
|
|
61
|
-
|
62
|
+
== Found a bug?
|
62
63
|
|
63
|
-
|
64
|
+
If you are having a problem with the plugin, first look at the FAQs above. If you still cannot resolve it, please submit an issue here.
|
64
65
|
|
65
|
-
|
66
|
+
http://github.com/randomutterings/s3_db_assets_backup/issues
|
File without changes
|
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
class S3BackupGenerator < Rails::Generators::Base
|
4
|
+
def self.source_root
|
5
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
6
|
+
end
|
7
|
+
|
8
|
+
def generate_layout
|
9
|
+
copy_file "s3_backup_config.yml", "config/s3_backup_config.yml"
|
10
|
+
end
|
11
|
+
end
|
File without changes
|
data/lib/s3_db_assets_backup.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
require 's3_db_assets_backup/engine' if defined?(Rails)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Chris Barnes
|
@@ -14,12 +14,12 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-07 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Generates rake tasks for backing up and restoring your database and public folder (which should also contain any uploaded assets) to and from an existing bucket in your Amazon S3 account. The rake tasks compresses and uploads each backup with a time stamp and the config file allows you to set how many of each backup to keep. This gem is based on (http://www.magnionlabs.com/2009/7/7/db-backups).
|
22
|
-
email: randomutterings
|
22
|
+
email: chris@randomutterings.com
|
23
23
|
executables: []
|
24
24
|
|
25
25
|
extensions: []
|
@@ -27,19 +27,17 @@ extensions: []
|
|
27
27
|
extra_rdoc_files:
|
28
28
|
- README.rdoc
|
29
29
|
files:
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
- s3_db_assets_backup.
|
34
|
-
-
|
35
|
-
-
|
36
|
-
- generators/s3_backup/templates/db_backup.rake
|
37
|
-
- generators/s3_backup/templates/load_s3_backup_config.rb
|
38
|
-
- generators/s3_backup/templates/s3_backup_config.yml
|
39
|
-
- generators/s3_backup/USAGE
|
30
|
+
- lib/generators/s3_backup/s3_backup_generator.rb
|
31
|
+
- lib/generators/s3_backup/templates/s3_backup_config.yml
|
32
|
+
- lib/generators/s3_backup/USAGE
|
33
|
+
- lib/s3_db_assets_backup/engine.rb
|
34
|
+
- lib/s3_db_assets_backup/railties/assets_backup.rake
|
35
|
+
- lib/s3_db_assets_backup/railties/db_backup.rake
|
40
36
|
- lib/s3_db_assets_backup.rb
|
37
|
+
- config/initializers/load_s3_backup_config.rb
|
41
38
|
- test/s3_db_assets_backup_test.rb
|
42
39
|
- test/test_helper.rb
|
40
|
+
- README.rdoc
|
43
41
|
has_rdoc: true
|
44
42
|
homepage: http://www.randomutterings.com/projects/s3_db_assets_backup
|
45
43
|
licenses: []
|
@@ -50,6 +48,7 @@ rdoc_options: []
|
|
50
48
|
require_paths:
|
51
49
|
- lib
|
52
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
53
52
|
requirements:
|
54
53
|
- - ">="
|
55
54
|
- !ruby/object:Gem::Version
|
@@ -57,6 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
56
|
- 0
|
58
57
|
version: "0"
|
59
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements: []
|
67
67
|
|
68
68
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.3.
|
69
|
+
rubygems_version: 1.3.7
|
70
70
|
signing_key:
|
71
71
|
specification_version: 3
|
72
72
|
summary: Generates rake tasks for backing up and restoring db and public folder to and from an existing S3 bucket
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2010 Chris Barnes
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
|
4
|
-
desc 'Default: run unit tests.'
|
5
|
-
task :default => :test
|
6
|
-
|
7
|
-
desc 'Test the s3_db_assets_backup plugin.'
|
8
|
-
Rake::TestTask.new(:test) do |t|
|
9
|
-
t.libs << 'test'
|
10
|
-
t.pattern = 'test/**/*_test.rb'
|
11
|
-
t.verbose = true
|
12
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class S3BackupGenerator < Rails::Generator::Base
|
2
|
-
def manifest
|
3
|
-
record do |m|
|
4
|
-
m.file "s3_backup_config.yml", "config/s3_backup_config.yml"
|
5
|
-
m.file "load_s3_backup_config.rb", "config/initializers/load_s3_backup_config.rb"
|
6
|
-
m.file "assets_backup.rake", "lib/tasks/assets_backup.rake"
|
7
|
-
m.file "db_backup.rake", "lib/tasks/db_backup.rake"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
data/s3_db_assets_backup.gemspec
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'rake/gempackagetask'
|
2
|
-
|
3
|
-
PKG_FILES = FileList[
|
4
|
-
'[a-zA-Z]*',
|
5
|
-
'generators/**/*',
|
6
|
-
'lib/**/*',
|
7
|
-
'test/**/*'
|
8
|
-
]
|
9
|
-
|
10
|
-
spec = Gem::Specification.new do |s|
|
11
|
-
s.name = "s3_db_assets_backup"
|
12
|
-
s.version = "0.0.7"
|
13
|
-
s.author = "Chris Barnes"
|
14
|
-
s.email = "randomutterings@gmail.com"
|
15
|
-
s.homepage = "http://www.randomutterings.com/projects/s3_db_assets_backup"
|
16
|
-
s.platform = Gem::Platform::RUBY
|
17
|
-
s.summary = "Generates rake tasks for backing up and restoring db and public folder to and from an existing S3 bucket"
|
18
|
-
s.description = "Generates rake tasks for backing up and restoring your database and public folder (which should also contain any uploaded assets) to and from an existing bucket in your Amazon S3 account. The rake tasks compresses and uploads each backup with a time stamp and the config file allows you to set how many of each backup to keep. This gem is based on (http://www.magnionlabs.com/2009/7/7/db-backups)."
|
19
|
-
s.files = PKG_FILES.to_a
|
20
|
-
s.extra_rdoc_files = ["README.rdoc"]
|
21
|
-
end
|
22
|
-
|
23
|
-
desc 'Turn this plugin into a gem.'
|
24
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
25
|
-
pkg.gem_spec = spec
|
26
|
-
end
|