Permalink
Browse files

update README.rdoc

  • Loading branch information...
lidaobing committed Jun 21, 2012
1 parent 0f1c39a commit db68565740ce1a45d045ac77c05cb0f3a1efbc24
Showing with 27 additions and 15 deletions.
  1. +1 −1 Gemfile.lock
  2. +25 −13 README.rdoc
  3. +1 −1 backup2everbox.gemspec
View
@@ -7,6 +7,7 @@ PATH
launchy
oauth
rest-client
+ sqlite3
GEM
remote: http://rubygems.org/
@@ -96,4 +97,3 @@ DEPENDENCIES
bundler (>= 1.0.0)
rake (= 0.8.7)
rdoc
- sqlite3
View
@@ -15,13 +15,27 @@
3. 运行 sudo backup --setup
-4. 修改 /opt/backup/config/backup.rb, 改为如下的形式
+4. 运行 backup2everbox, 得到认证码,输出如下所示
+
+ open url in your browser: http://account.everbox.com/...
+ please input the verification code: 123456
+ add following code to your /opt/backup/config/backup.rb
+ ##################################################
+ storage :everbox do
+ access_key_id '1234567890abcdefgh'
+ secret_access_key 'hgfedcba0987654321'
+ path '/backups'
+ end
+ ##################################################
+
+
+5. 修改 /opt/backup/config/backup.rb, 改为如下的形式
gem 'backup2everbox'
require 'backup2everbox'
-
+
backup 'mysql-backup-everbox' do
-
+
adapter :mysql do
user 'USERNAME'
password 'PASSWORD'
@@ -32,22 +46,20 @@
port '3306'
end
end
-
+
storage :everbox do
- username 'YOUR SDO USERNAME'
- password 'YOUR SDO PASSWORD'
+ access_key_id '1234567890abcdefgh'
+ secret_access_key 'hgfedcba0987654321'
path '/backups'
end
-
+
keep_backups 10
encrypt_with_password false
notify false
-
- end
-5. 运行 sudo backup -r mysql-backup-everbox
-
-6. backup 支持备份目录,数据库等多种源,并且支持非对称密钥加密来保护数据安全,
- 具体可以参考 backup 的文档: https://github.com/meskyanichi/backup
+ end
+6. 运行 sudo backup -r mysql-backup-everbox
+7. backup 支持备份目录,数据库等多种源,并且支持非对称密钥加密来保护数据安全,
+ 具体可以参考 backup 的文档: https://github.com/meskyanichi/backup/tree/backup-2
View
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
s.add_dependency 'oauth'
s.add_dependency 'rest-client'
s.add_dependency 'launchy'
+ s.add_dependency 'sqlite3'
s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency 'rake', "0.8.7"
s.add_development_dependency 'rdoc'
- s.add_development_dependency 'sqlite3'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 comments on commit db68565

Please sign in to comment.