move backup script

Andrew Cantino 11 years ago
parent
commit
9d6f4b02ec
4 changed files with 8 additions and 21 deletions
  1. 4 2
      Gemfile
  2. 0 19
      Gemfile.lock
  3. 4 0
      README.md
  4. 0 0
      config/example_backup.rb

+ 4 - 2
Gemfile

@@ -32,8 +32,10 @@ gem 'twitter-stream', '>=0.1.16'
32 32
 gem 'em-http-request'
33 33
 
34 34
 gem 'unicorn'
35
-gem 'backup', :require => false
36
-gem 'fog', '~> 1.4.0', :require => false
35
+
36
+# If you want to use the Backup gem for backups, uncomment these lines:
37
+# gem 'backup', :require => false
38
+# gem 'fog', '~> 1.4.0', :require => false
37 39
 
38 40
 group :development do
39 41
   gem 'capistrano'

+ 0 - 19
Gemfile.lock

@@ -30,9 +30,6 @@ GEM
30 30
       multi_json (~> 1.0)
31 31
     addressable (2.3.3)
32 32
     arel (3.0.2)
33
-    backup (3.1.2)
34
-      open4 (~> 1.3.0)
35
-      thor (>= 0.15.4, < 2)
36 33
     bcrypt-ruby (3.0.1)
37 34
     bootstrap-kaminari-views (0.0.2)
38 35
       kaminari (>= 0.13)
@@ -83,26 +80,14 @@ GEM
83 80
       ffi (~> 1.3.0)
84 81
       mime-types (~> 1.18)
85 82
     eventmachine (1.0.3)
86
-    excon (0.14.3)
87 83
     execjs (1.4.0)
88 84
       multi_json (~> 1.0)
89 85
     faraday (0.8.6)
90 86
       multipart-post (~> 1.1)
91 87
     ffi (1.3.1)
92
-    fog (1.4.0)
93
-      builder
94
-      excon (~> 0.14.0)
95
-      formatador (~> 0.2.0)
96
-      mime-types
97
-      multi_json (~> 1.0)
98
-      net-scp (~> 1.0.4)
99
-      net-ssh (>= 2.1.3)
100
-      nokogiri (~> 1.5.0)
101
-      ruby-hmac
102 88
     font-awesome-sass-rails (3.0.2.2)
103 89
       railties (>= 3.1.1)
104 90
       sass-rails (>= 3.1.1)
105
-    formatador (0.2.4)
106 91
     geokit (1.6.5)
107 92
       multi_json
108 93
     geokit-rails3 (0.1.5)
@@ -149,7 +134,6 @@ GEM
149 134
     net-ssh-gateway (1.2.0)
150 135
       net-ssh (>= 2.6.5)
151 136
     nokogiri (1.5.6)
152
-    open4 (1.3.0)
153 137
     orm_adapter (0.4.0)
154 138
     polyglot (0.3.3)
155 139
     pry (0.9.12)
@@ -217,7 +201,6 @@ GEM
217 201
       rspec-core (~> 2.13.0)
218 202
       rspec-expectations (~> 2.13.0)
219 203
       rspec-mocks (~> 2.13.0)
220
-    ruby-hmac (0.4.0)
221 204
     rufus-scheduler (2.0.18)
222 205
       tzinfo (>= 0.3.23)
223 206
     rvm-capistrano (1.2.7)
@@ -275,7 +258,6 @@ PLATFORMS
275 258
   ruby
276 259
 
277 260
 DEPENDENCIES
278
-  backup
279 261
   bootstrap-kaminari-views
280 262
   capistrano
281 263
   capistrano-unicorn
@@ -284,7 +266,6 @@ DEPENDENCIES
284 266
   delayed_job_active_record (~> 0.3.3)
285 267
   devise
286 268
   em-http-request
287
-  fog (~> 1.4.0)
288 269
   geokit-rails3
289 270
   jquery-rails
290 271
   json (>= 1.7.7)

+ 4 - 0
README.md

@@ -56,6 +56,10 @@ In order to use the WeatherAgent you need an [API key with Wunderground](http://
56 56
 
57 57
 We assume your deployment will run over SSL. This is a very good idea! However, if you wish to turn this off, you'll probably need to edit `config/initializers/devise.rb` and modify the line containing `config.rememberable_options = { :secure => true }`.  You will also need to edit `config/environments/production.rb` and modify the value of `config.force_ssl`.
58 58
 
59
+#### Setup Backups
60
+
61
+Checkout `config/example_backup.rb` for an example script that you can use with the Backup gem.  If you want to use it, uncomment the associated lines in your Gemfile.
62
+
59 63
 ## License
60 64
 
61 65
 Huginn is provided under the MIT License.

example_backup.rb → config/example_backup.rb