backup2everbox 0.1.1 → 0.1.2
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/Gemfile.lock +11 -11
- data/History.rdoc +4 -0
- data/README.md +63 -0
- data/Rakefile +2 -3
- data/backup2everbox.gemspec +2 -3
- data/lib/backup/connection/everbox.rb +1 -0
- data/lib/backup2everbox/version.rb +1 -1
- metadata +9 -6
- data/README.rdoc +0 -60
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
backup2everbox (0.1.
|
4
|
+
backup2everbox (0.1.2)
|
5
5
|
activesupport
|
6
6
|
backup (~> 3.0)
|
7
7
|
launchy
|
@@ -11,25 +11,25 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: http://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (3.2.
|
14
|
+
activesupport (3.2.8)
|
15
15
|
i18n (~> 0.6)
|
16
16
|
multi_json (~> 1.0)
|
17
|
-
addressable (2.2
|
18
|
-
backup (3.0.
|
17
|
+
addressable (2.3.2)
|
18
|
+
backup (3.0.25)
|
19
19
|
open4 (~> 1.3.0)
|
20
|
-
thor (~> 0.
|
20
|
+
thor (~> 0.15.4)
|
21
21
|
columnize (0.3.6)
|
22
|
-
debugger (1.
|
22
|
+
debugger (1.2.0)
|
23
23
|
columnize (>= 0.3.1)
|
24
24
|
debugger-linecache (~> 1.1.1)
|
25
25
|
debugger-ruby_core_source (~> 1.1.3)
|
26
|
-
debugger-linecache (1.1.
|
26
|
+
debugger-linecache (1.1.2)
|
27
27
|
debugger-ruby_core_source (>= 1.1.1)
|
28
28
|
debugger-ruby_core_source (1.1.3)
|
29
29
|
i18n (0.6.0)
|
30
|
-
json (1.7.
|
31
|
-
launchy (2.1.
|
32
|
-
addressable (~> 2.
|
30
|
+
json (1.7.5)
|
31
|
+
launchy (2.1.2)
|
32
|
+
addressable (~> 2.3)
|
33
33
|
mime-types (1.19)
|
34
34
|
multi_json (1.3.6)
|
35
35
|
oauth (0.4.6)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
json (~> 1.4)
|
40
40
|
rest-client (1.6.7)
|
41
41
|
mime-types (>= 1.16)
|
42
|
-
thor (0.
|
42
|
+
thor (0.15.4)
|
43
43
|
|
44
44
|
PLATFORMS
|
45
45
|
ruby
|
data/History.rdoc
CHANGED
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# 简介
|
2
|
+
|
3
|
+
{<img src="https://secure.travis-ci.org/lidaobing/backup2everbox.png?branch=master" alt="Build Status" />}[http://travis-ci.org/lidaobing/backup2everbox]
|
4
|
+
|
5
|
+
备份你的数据、文件到 EverBox
|
6
|
+
|
7
|
+
文档: http://rubydoc.info/github/lidaobing/backup2everbox/master/frames
|
8
|
+
|
9
|
+
# 使用方法
|
10
|
+
|
11
|
+
1. 注册一个 EverBox 帐号: http://www.everbox.com
|
12
|
+
|
13
|
+
2. 运行 `gem install backup2everbox`
|
14
|
+
|
15
|
+
3. 运行 `backup generate:config`
|
16
|
+
|
17
|
+
4. 运行 `backup generate:model --trigger=mysql_backup_everbox`
|
18
|
+
|
19
|
+
5. 运行 `backup2everbox`, 得到认证码,输出如下所示
|
20
|
+
|
21
|
+
```
|
22
|
+
open url in your browser: http://account.everbox.com/...
|
23
|
+
please input the verification code: 123456
|
24
|
+
|
25
|
+
add following code to your ~/Backup/models/foo.rb
|
26
|
+
##################################################
|
27
|
+
store_with Everbox do |eb|
|
28
|
+
eb.token = '1234567890abcdefgh'
|
29
|
+
eb.secret = 'hgfedcba0987654321'
|
30
|
+
end
|
31
|
+
##################################################
|
32
|
+
```
|
33
|
+
|
34
|
+
6. 修改 `~/Backup/models/mysql_backup_everbox.rb`, 改为如下的形式
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
require 'rubygems'
|
38
|
+
gem 'backup2everbox'
|
39
|
+
require 'backup2everbox'
|
40
|
+
|
41
|
+
Backup::Model.new(:mysql_backup_everbox, 'Description for mysql_backup_everbox') do
|
42
|
+
split_into_chunks_of 250
|
43
|
+
|
44
|
+
database MySQL do |db|
|
45
|
+
db.name = "giga_development"
|
46
|
+
db.username = "my_username"
|
47
|
+
db.password = "my_password"
|
48
|
+
db.host = "localhost"
|
49
|
+
db.port = 3306
|
50
|
+
db.socket = "/tmp/mysql.sock"
|
51
|
+
end
|
52
|
+
|
53
|
+
store_with Everbox do |eb|
|
54
|
+
eb.token = '1234567890abcdefgh'
|
55
|
+
eb.secret = 'hgfedcba0987654321'
|
56
|
+
end
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
7. 运行 `backup perform -t mysql_backup_everbox`
|
61
|
+
|
62
|
+
8. backup 支持备份目录,数据库等多种源,并且支持非对称密钥加密来保护数据安全,
|
63
|
+
具体可以参考 backup 的文档: https://github.com/meskyanichi/backup
|
data/Rakefile
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'bundler'
|
2
|
+
require 'bundler/setup'
|
3
3
|
Bundler::GemHelper.install_tasks
|
4
4
|
require 'rdoc'
|
5
5
|
require 'rdoc/task'
|
6
6
|
|
7
7
|
ENV["RDOC_OPTS"] ||= "-c UTF-8"
|
8
8
|
RDoc::Task.new do |rd|
|
9
|
-
rd.
|
10
|
-
rd.rdoc_files.include("README.rdoc", "History.rdoc", "lib/**/*.rb")
|
9
|
+
rd.rdoc_files.include("History.rdoc", "lib/**/*.rb")
|
11
10
|
rd.options << "--charset" << "UTF-8"
|
12
11
|
end
|
13
12
|
|
data/backup2everbox.gemspec
CHANGED
@@ -13,9 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = %q{backup to EverBox}
|
14
14
|
|
15
15
|
s.rubyforge_project = "backup2everbox"
|
16
|
-
s.rdoc_options << '--
|
17
|
-
|
18
|
-
s.extra_rdoc_files = ['README.rdoc', 'History.rdoc']
|
16
|
+
s.rdoc_options << '--charset' << 'UTF-8'
|
17
|
+
s.extra_rdoc_files = ['History.rdoc']
|
19
18
|
|
20
19
|
s.add_dependency 'backup', '~> 3.0'
|
21
20
|
s.add_dependency 'activesupport'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup2everbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: backup
|
@@ -162,7 +162,6 @@ executables:
|
|
162
162
|
- backup2everbox
|
163
163
|
extensions: []
|
164
164
|
extra_rdoc_files:
|
165
|
-
- README.rdoc
|
166
165
|
- History.rdoc
|
167
166
|
files:
|
168
167
|
- .gitignore
|
@@ -170,7 +169,7 @@ files:
|
|
170
169
|
- Gemfile
|
171
170
|
- Gemfile.lock
|
172
171
|
- History.rdoc
|
173
|
-
- README.
|
172
|
+
- README.md
|
174
173
|
- Rakefile
|
175
174
|
- TODO
|
176
175
|
- backup2everbox.gemspec
|
@@ -185,8 +184,6 @@ homepage: https://github.com/lidaobing/backup2everbox
|
|
185
184
|
licenses: []
|
186
185
|
post_install_message:
|
187
186
|
rdoc_options:
|
188
|
-
- --main
|
189
|
-
- README.rdoc
|
190
187
|
- --charset
|
191
188
|
- UTF-8
|
192
189
|
require_paths:
|
@@ -197,12 +194,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
194
|
- - ! '>='
|
198
195
|
- !ruby/object:Gem::Version
|
199
196
|
version: '0'
|
197
|
+
segments:
|
198
|
+
- 0
|
199
|
+
hash: -3914589705035602876
|
200
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
201
|
none: false
|
202
202
|
requirements:
|
203
203
|
- - ! '>='
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
|
+
segments:
|
207
|
+
- 0
|
208
|
+
hash: -3914589705035602876
|
206
209
|
requirements: []
|
207
210
|
rubyforge_project: backup2everbox
|
208
211
|
rubygems_version: 1.8.23
|
data/README.rdoc
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
= 简介
|
2
|
-
|
3
|
-
{<img src="https://secure.travis-ci.org/lidaobing/backup2everbox.png?branch=master" alt="Build Status" />}[http://travis-ci.org/lidaobing/backup2everbox]
|
4
|
-
|
5
|
-
备份你的数据、文件到 EverBox
|
6
|
-
|
7
|
-
文档: http://rubydoc.info/github/lidaobing/backup2everbox/master/frames
|
8
|
-
|
9
|
-
= 使用方法
|
10
|
-
|
11
|
-
1. 注册一个 EverBox 帐号: http://www.everbox.com/ , 注意必须注册盛大通行证帐号,
|
12
|
-
如果需要邀请码,请到 http://www.douban.com/group/topic/17242955/
|
13
|
-
|
14
|
-
2. 运行 gem install backup2everbox
|
15
|
-
|
16
|
-
3. 运行 backup generate:config
|
17
|
-
|
18
|
-
4. 运行 backup generate:model --trigger=mysql_backup_everbox
|
19
|
-
|
20
|
-
5. 运行 backup2everbox, 得到认证码,输出如下所示
|
21
|
-
|
22
|
-
open url in your browser: http://account.everbox.com/...
|
23
|
-
please input the verification code: 123456
|
24
|
-
|
25
|
-
add following code to your ~/Backup/models/foo.rb
|
26
|
-
##################################################
|
27
|
-
store_with Everbox do |eb|
|
28
|
-
eb.token = '1234567890abcdefgh'
|
29
|
-
eb.secret = 'hgfedcba0987654321'
|
30
|
-
end
|
31
|
-
##################################################
|
32
|
-
|
33
|
-
6. 修改 ~/Backup/models/mysql_backup_everbox.rb, 改为如下的形式
|
34
|
-
|
35
|
-
require 'rubygems'
|
36
|
-
gem 'backup2everbox'
|
37
|
-
require 'backup2everbox'
|
38
|
-
|
39
|
-
Backup::Model.new(:mysql_backup_everbox, 'Description for mysql_backup_everbox') do
|
40
|
-
split_into_chunks_of 250
|
41
|
-
|
42
|
-
database MySQL do |db|
|
43
|
-
db.name = "giga_development"
|
44
|
-
db.username = "my_username"
|
45
|
-
db.password = "my_password"
|
46
|
-
db.host = "localhost"
|
47
|
-
db.port = 3306
|
48
|
-
db.socket = "/tmp/mysql.sock"
|
49
|
-
end
|
50
|
-
|
51
|
-
store_with Everbox do |eb|
|
52
|
-
eb.token = '1234567890abcdefgh'
|
53
|
-
eb.secret = 'hgfedcba0987654321'
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
6. 运行 sudo backup perform -t mysql_backup_everbox
|
58
|
-
|
59
|
-
7. backup 支持备份目录,数据库等多种源,并且支持非对称密钥加密来保护数据安全,
|
60
|
-
具体可以参考 backup 的文档: https://github.com/meskyanichi/backup
|