heroku_cloud_backup 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -0
- data/heroku_cloud_backup.gemspec +1 -1
- data/lib/heroku_cloud_backup/version.rb +1 -1
- data/lib/heroku_cloud_backup.rb +2 -2
- metadata +4 -27
data/README.md
CHANGED
@@ -75,6 +75,12 @@ You can run this manually like this:
|
|
75
75
|
heroku rake heroku_backup
|
76
76
|
heroku rake heroku:cloud_backup
|
77
77
|
|
78
|
+
## Restoring a backup
|
79
|
+
|
80
|
+
I would recommend you create a temporarily public url from your cloud storage. I do this with Cyberduck. It has a neat feature where you can right click on a file and it'll generate temporarily accessible urls to that file, with the auth params for it. So once you have that url you can store like this:
|
81
|
+
|
82
|
+
heroku pgbackups:restore 'http://my-bucket-name.s3.amazonaws.com/db/DATABASE_URL/2011-06-09-014500.dump?authparameters'
|
83
|
+
|
78
84
|
## Note on Patches/Pull Requests
|
79
85
|
|
80
86
|
* Fork the project.
|
data/heroku_cloud_backup.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Jack Chu"]
|
10
10
|
s.email = ["jack@jackchu.com"]
|
11
|
-
s.homepage = ""
|
11
|
+
s.homepage = "http://jackchu.com/automated-heroku-database-backups-to-s3"
|
12
12
|
s.summary = %q{Backup pg dumps to the cloud}
|
13
13
|
s.description = %q{PG backups into the cloud with fog}
|
14
14
|
|
data/lib/heroku_cloud_backup.rb
CHANGED
@@ -56,13 +56,13 @@ module HerokuCloudBackup
|
|
56
56
|
:aws_secret_access_key => @key2
|
57
57
|
)
|
58
58
|
when 'rackspace'
|
59
|
-
connection = Fog::Storage.new(
|
59
|
+
@connection = Fog::Storage.new(
|
60
60
|
:provider => 'Rackspace',
|
61
61
|
:rackspace_username => @key1,
|
62
62
|
:rackspace_api_key => @key2
|
63
63
|
)
|
64
64
|
when 'google'
|
65
|
-
connection = Fog::Storage.new(
|
65
|
+
@connection = Fog::Storage.new(
|
66
66
|
:provider => 'Google',
|
67
67
|
:google_storage_secret_access_key => @key1,
|
68
68
|
:google_storage_access_key_id => @key2
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_cloud_backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 21
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 5
|
10
|
-
version: 0.0.5
|
5
|
+
version: 0.0.6
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Jack Chu
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-06-
|
19
|
-
default_executable:
|
13
|
+
date: 2011-06-14 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: fog
|
@@ -26,11 +20,6 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 7
|
33
|
-
- 2
|
34
23
|
version: 0.7.2
|
35
24
|
type: :runtime
|
36
25
|
version_requirements: *id001
|
@@ -42,11 +31,6 @@ dependencies:
|
|
42
31
|
requirements:
|
43
32
|
- - ">="
|
44
33
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
|
-
segments:
|
47
|
-
- 2
|
48
|
-
- 1
|
49
|
-
- 4
|
50
34
|
version: 2.1.4
|
51
35
|
type: :runtime
|
52
36
|
version_requirements: *id002
|
@@ -71,8 +55,7 @@ files:
|
|
71
55
|
- lib/heroku_cloud_backup/railtie.rb
|
72
56
|
- lib/heroku_cloud_backup/tasks.rb
|
73
57
|
- lib/heroku_cloud_backup/version.rb
|
74
|
-
|
75
|
-
homepage: ""
|
58
|
+
homepage: http://jackchu.com/automated-heroku-database-backups-to-s3
|
76
59
|
licenses: []
|
77
60
|
|
78
61
|
post_install_message:
|
@@ -85,23 +68,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
68
|
requirements:
|
86
69
|
- - ">="
|
87
70
|
- !ruby/object:Gem::Version
|
88
|
-
hash: 3
|
89
|
-
segments:
|
90
|
-
- 0
|
91
71
|
version: "0"
|
92
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
73
|
none: false
|
94
74
|
requirements:
|
95
75
|
- - ">="
|
96
76
|
- !ruby/object:Gem::Version
|
97
|
-
hash: 3
|
98
|
-
segments:
|
99
|
-
- 0
|
100
77
|
version: "0"
|
101
78
|
requirements: []
|
102
79
|
|
103
80
|
rubyforge_project: heroku_cloud_backup
|
104
|
-
rubygems_version: 1.4
|
81
|
+
rubygems_version: 1.8.4
|
105
82
|
signing_key:
|
106
83
|
specification_version: 3
|
107
84
|
summary: Backup pg dumps to the cloud
|