lumberg 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +9 -3
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/Rakefile +3 -1
- data/lib/lumberg.rb +32 -7
- data/lib/lumberg/config.rb +19 -0
- data/lib/lumberg/format_whm.rb +102 -0
- data/lib/lumberg/version.rb +1 -1
- data/lib/lumberg/whm/server.rb +42 -163
- data/lumberg.gemspec +7 -4
- data/spec/config_spec.rb +28 -0
- data/spec/spec_helper.rb +3 -3
- data/spec/vcr_cassettes/whm/account/accountsummary.yml +41 -29
- data/spec/vcr_cassettes/whm/account/changepackage.yml +73 -43
- data/spec/vcr_cassettes/whm/account/createacct.yml +101 -31
- data/spec/vcr_cassettes/whm/account/domainuserdata.yml +43 -29
- data/spec/vcr_cassettes/whm/account/editquota.yml +78 -57
- data/spec/vcr_cassettes/whm/account/limitbw.yml +79 -57
- data/spec/vcr_cassettes/whm/account/listaccts.yml +195 -100
- data/spec/vcr_cassettes/whm/account/listsuspended.yml +41 -29
- data/spec/vcr_cassettes/whm/account/modifyacct.yml +61 -42
- data/spec/vcr_cassettes/whm/account/myprivs.yml +41 -29
- data/spec/vcr_cassettes/whm/account/passwd.yml +44 -29
- data/spec/vcr_cassettes/whm/account/removeacct.yml +134 -57
- data/spec/vcr_cassettes/whm/account/restoreaccount.yml +310 -135
- data/spec/vcr_cassettes/whm/account/setsiteip.yml +166 -127
- data/spec/vcr_cassettes/whm/account/suspend.yml +75 -43
- data/spec/vcr_cassettes/whm/account/unsuspend.yml +46 -29
- data/spec/vcr_cassettes/whm/dns/adddns.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/addzonerecord.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/dumpzone.yml +44 -29
- data/spec/vcr_cassettes/whm/dns/editzonerecord.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/getzonerecord.yml +60 -43
- data/spec/vcr_cassettes/whm/dns/killdns.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/listmxs.yml +23 -15
- data/spec/vcr_cassettes/whm/dns/listzones.yml +22 -15
- data/spec/vcr_cassettes/whm/dns/lookupnsip.yml +40 -29
- data/spec/vcr_cassettes/whm/dns/removezonerecord.yml +61 -43
- data/spec/vcr_cassettes/whm/dns/resetzone.yml +42 -29
- data/spec/vcr_cassettes/whm/dns/resolvedomainname.yml +40 -29
- data/spec/vcr_cassettes/whm/dns/savemxs.yml +23 -15
- data/spec/vcr_cassettes/whm/reseller/acctcounts.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/listacls.yml +22 -15
- data/spec/vcr_cassettes/whm/reseller/listresellers.yml +22 -15
- data/spec/vcr_cassettes/whm/reseller/resellerstats.yml +42 -29
- data/spec/vcr_cassettes/whm/reseller/saveacllist.yml +76 -57
- data/spec/vcr_cassettes/whm/reseller/setacls.yml +40 -29
- data/spec/vcr_cassettes/whm/reseller/setresellerips.yml +42 -28
- data/spec/vcr_cassettes/whm/reseller/setresellerlimits.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/setresellermainip.yml +59 -43
- data/spec/vcr_cassettes/whm/reseller/setresellernameservers.yml +58 -43
- data/spec/vcr_cassettes/whm/reseller/setresellerpackagelimit.yml +61 -43
- data/spec/vcr_cassettes/whm/reseller/setupreseller.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/suspendreseller.yml +75 -44
- data/spec/vcr_cassettes/whm/reseller/terminatereseller.yml +83 -46
- data/spec/vcr_cassettes/whm/reseller/unsetupreseller.yml +41 -29
- data/spec/vcr_cassettes/whm/reseller/unsuspendreseller.yml +46 -29
- data/spec/vcr_cassettes/whm/server/addip.yml +24 -15
- data/spec/vcr_cassettes/whm/server/applist.yml +22 -15
- data/spec/vcr_cassettes/whm/server/delip.yml +23 -15
- data/spec/vcr_cassettes/whm/server/gethostname.yml +22 -15
- data/spec/vcr_cassettes/whm/server/getlanglist.yml +22 -15
- data/spec/vcr_cassettes/whm/server/listips.yml +22 -15
- data/spec/vcr_cassettes/whm/server/loadavg.yml +26 -19
- data/spec/vcr_cassettes/whm/server/my_function.yml +59 -43
- data/spec/vcr_cassettes/whm/server/nvget.yml +22 -15
- data/spec/vcr_cassettes/whm/server/nvset.yml +22 -15
- data/spec/vcr_cassettes/whm/server/reboot.yml +22 -15
- data/spec/vcr_cassettes/whm/server/sethostname.yml +24 -15
- data/spec/vcr_cassettes/whm/server/setresolvers.yml +23 -15
- data/spec/vcr_cassettes/whm/server/showbw.yml +22 -15
- data/spec/vcr_cassettes/whm/server/systemloadavg.yml +40 -29
- data/spec/vcr_cassettes/whm/server/version.yml +22 -15
- data/spec/whm/account_spec.rb +0 -1
- data/spec/whm/server_spec.rb +2 -106
- metadata +98 -26
- data/lib/net_http_hacked.rb +0 -42
- data/spec/vcr_cassettes/whm/server/response_type.yml +0 -85
@@ -1,198 +1,373 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
5
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=privs
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- WHM root:iscool
|
10
|
-
response:
|
11
|
-
status:
|
12
|
+
response:
|
13
|
+
status:
|
12
14
|
code: 200
|
13
15
|
message: OK
|
14
|
-
headers:
|
15
|
-
|
16
|
+
headers:
|
17
|
+
Content-Type:
|
16
18
|
- text/plain
|
17
|
-
|
19
|
+
Server:
|
18
20
|
- cpsrvd/11.28.64
|
19
|
-
|
21
|
+
Transfer-Encoding:
|
20
22
|
- chunked
|
21
|
-
body:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: ! '{"metadata":{"result":0,"reason":"Unable to find archive at /backup/cpbackup/daily","version":1,"command":"restoreaccount"}}'
|
26
|
+
http_version: '1.1'
|
27
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
28
|
+
- request:
|
29
|
+
method: get
|
26
30
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=privs
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ''
|
34
|
+
headers:
|
35
|
+
Authorization:
|
30
36
|
- WHM root:iscool
|
31
|
-
response:
|
32
|
-
status:
|
37
|
+
response:
|
38
|
+
status:
|
33
39
|
code: 200
|
34
40
|
message: OK
|
35
|
-
headers:
|
36
|
-
|
41
|
+
headers:
|
42
|
+
Server:
|
37
43
|
- cpsrvd/11.28.64
|
38
|
-
|
44
|
+
Transfer-Encoding:
|
39
45
|
- chunked
|
40
|
-
|
41
|
-
-
|
42
|
-
|
43
|
-
-
|
44
|
-
|
46
|
+
Changing-Password-For-Privs:
|
47
|
+
- ! ' '
|
48
|
+
Password-For-Privs-Has-Been-Changed:
|
49
|
+
- ! ' '
|
50
|
+
Content-Type:
|
45
51
|
- text/plain
|
46
|
-
body:
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: ! '{"metadata":{"result":1,"reason":"OK","version":1,"command":"restoreaccount","output":{"raw":"Extracting
|
55
|
+
tarball...................\nDone<br />\nExtracting Domain....Done<br />\nDone<br
|
56
|
+
/>\n<br /><br />Restoring cpanel user config fileDone<br />\n<br />Restoring
|
57
|
+
reseller privs (if any)<br />Restoring Locale Setting<br />Restoring SSL keys
|
58
|
+
and CertificatesDone<br />\n<br />Restoring frontpage (if installed)Done<br
|
59
|
+
/>\n<br />Restoring access logs....\nDone<br />\n<br /><br />Restoring domain
|
60
|
+
keys....\nDone<br />\n<br /><br />Restoring DB MAP File....\nDone<br />\n<br
|
61
|
+
/><br /><span class=\"b2\">Restoring PostgreSQL databases....</span>\nPostgreSQL
|
62
|
+
is not installed. Skipping.<br/>\nRestoring Mailman listsDone<br />\n<br />Restoring
|
63
|
+
Mailman ArchivesDone<br />\n<br />Restoring shell<blockquote><pre>Current
|
64
|
+
shell /usr/local/cpanel/bin/jailshell is up to date.\n</pre></blockquote>Done<br
|
65
|
+
/>\n<br />Restoring password<blockquote><pre></pre></blockquote>Done<br />\n<br
|
66
|
+
/>Restoring proftpd fileDone<br />\n<br />Resyncing FTP Passwords<blockquote><pre>Updating
|
67
|
+
ftp passwords for privsFtp password files updated.Ftp vhost passwords synced</pre></blockquote>Done<br
|
68
|
+
/>\n<br />Linking old home directories<br />Parsing Domain Databases...ParkedDomains......AddonDomains...<br
|
69
|
+
/>Restoring Domains<br />\n<br />Restoring Bandwidth DataDone\n<br />Restoring
|
70
|
+
Counter Data<pre></pre><br />Restoring Homedir....<blockquote><pre></pre></blockquote>Done<br
|
71
|
+
/>\n<br />Doing fileprotect conversion<br />Restoring nobody owned filesDone<br
|
72
|
+
/>\n<br />Restoring userdata....\nDone<br />\n<br /><br />Restoring custom
|
73
|
+
virtualhost templates....\nConverting email to cPanel 5+ (if needed)<blockquote><pre></pre></blockquote>Done<br
|
74
|
+
/>\n<br />Cleaning up filters (if needed)<blockquote><pre>vfilter converter
|
75
|
+
v3.0Updating vfilter files to latest format.Running for privs only (force=0)
|
76
|
+
(has_spam_acl=1)Processing privs......Done</pre></blockquote>Done<br />\n<br
|
77
|
+
/>Fixing mail permissions<blockquote><pre></pre></blockquote>Done<br />\n<br
|
78
|
+
/>Restoring crontabDone<br />\nConverting to maildir if needed<blockquote><pre></pre></blockquote>Done<br
|
79
|
+
/>\nRestoring Dns Zones<blockquote><pre>Restoring zone: privs.com.db\nUnable
|
80
|
+
to determine IP address for privs.com!Could not get zone ip for privs.com..
|
81
|
+
skipping changes.\n</pre></blockquote><br />Adding missing subdomain DNS entries
|
82
|
+
(if needed)<pre></pre><br />Updating SPF Records<blockquote><pre></pre></blockquote>Done<br
|
83
|
+
/>\n<br />Restoring quota<blockquote><pre></pre></blockquote>Done<br />\n<br
|
84
|
+
/><br />Update mail routing<blockquote><pre>LOCAL MAIL EXCHANGER: This server
|
85
|
+
will serve as a primary mail exchanger for privs.com''s mail.: This configuration
|
86
|
+
has been manually selected.\n</pre></blockquote>Done<br />\n<br />Rebuilding
|
87
|
+
Apache Conf<br />Restore CompleteAccount Restore Complete\nUnlocking password
|
88
|
+
for user privs.passwd: Success.<br />"}}}'
|
89
|
+
http_version: '1.1'
|
90
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
51
93
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=changeme
|
52
|
-
body:
|
53
|
-
|
54
|
-
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
Authorization:
|
55
99
|
- WHM root:iscool
|
56
|
-
response:
|
57
|
-
status:
|
100
|
+
response:
|
101
|
+
status:
|
58
102
|
code: 200
|
59
103
|
message: OK
|
60
|
-
headers:
|
61
|
-
|
104
|
+
headers:
|
105
|
+
Server:
|
62
106
|
- cpsrvd/11.28.64
|
63
|
-
|
107
|
+
Transfer-Encoding:
|
64
108
|
- chunked
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
-
|
69
|
-
|
109
|
+
Changing-Password-For-Changeme:
|
110
|
+
- ! ' '
|
111
|
+
Password-For-Changeme-Has-Been-Changed:
|
112
|
+
- ! ' '
|
113
|
+
Content-Type:
|
70
114
|
- text/plain
|
71
|
-
body:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: ! '{"metadata":{"result":1,"reason":"OK","version":1,"command":"restoreaccount","output":{"raw":"Extracting
|
118
|
+
tarball...................\nDone<br />\nExtracting Domain....Done<br />\nDone<br
|
119
|
+
/>\n<br /><br />Restoring cpanel user config fileDone<br />\n<br />Restoring
|
120
|
+
reseller privs (if any)<br />Restoring Locale Setting<br />Restoring SSL keys
|
121
|
+
and CertificatesDone<br />\n<br />Restoring frontpage (if installed)Done<br
|
122
|
+
/>\n<br />Restoring access logs....\nDone<br />\n<br /><br />Restoring domain
|
123
|
+
keys....\nDone<br />\n<br /><br />Restoring DB MAP File....\nDone<br />\n<br
|
124
|
+
/><br /><span class=\"b2\">Restoring PostgreSQL databases....</span>\nPostgreSQL
|
125
|
+
is not installed. Skipping.<br/>\nRestoring Mailman listsDone<br />\n<br />Restoring
|
126
|
+
Mailman ArchivesDone<br />\n<br />Restoring shell<blockquote><pre>Current
|
127
|
+
shell /usr/local/cpanel/bin/noshell is up to date.\n</pre></blockquote>Done<br
|
128
|
+
/>\n<br />Restoring password<blockquote><pre></pre></blockquote>Done<br />\n<br
|
129
|
+
/>Restoring proftpd fileDone<br />\n<br />Resyncing FTP Passwords<blockquote><pre>Updating
|
130
|
+
ftp passwords for changemeFtp password files updated.Ftp vhost passwords synced</pre></blockquote>Done<br
|
131
|
+
/>\n<br />Linking old home directories<br />Parsing Domain Databases...ParkedDomains......AddonDomains...<br
|
132
|
+
/>Restoring Domains<br />\n<br />Restoring Bandwidth DataDone\n<br />Restoring
|
133
|
+
Counter Data<pre></pre><br />Restoring Homedir....<blockquote><pre></pre></blockquote>Done<br
|
134
|
+
/>\n<br />Doing fileprotect conversion<br />Restoring nobody owned filesDone<br
|
135
|
+
/>\n<br />Restoring userdata....\nDone<br />\n<br /><br />Restoring custom
|
136
|
+
virtualhost templates....\nConverting email to cPanel 5+ (if needed)<blockquote><pre></pre></blockquote>Done<br
|
137
|
+
/>\n<br />Cleaning up filters (if needed)<blockquote><pre>vfilter converter
|
138
|
+
v3.0Updating vfilter files to latest format.Running for changeme only (force=0)
|
139
|
+
(has_spam_acl=1)Processing changeme......Done</pre></blockquote>Done<br />\n<br
|
140
|
+
/>Fixing mail permissions<blockquote><pre></pre></blockquote>Done<br />\n<br
|
141
|
+
/>Restoring crontabDone<br />\nConverting to maildir if needed<blockquote><pre></pre></blockquote>Done<br
|
142
|
+
/>\nRestoring Dns Zones<blockquote><pre>Restoring zone: example.com.db\nUnable
|
143
|
+
to determine IP address for example.com!Could not get zone ip for example.com..
|
144
|
+
skipping changes.\n</pre></blockquote><br />Adding missing subdomain DNS entries
|
145
|
+
(if needed)<pre></pre><br />Updating SPF Records<blockquote><pre></pre></blockquote>Done<br
|
146
|
+
/>\n<br />Restoring quota<blockquote><pre></pre></blockquote>Done<br />\n<br
|
147
|
+
/><br />Update mail routing<blockquote><pre>LOCAL MAIL EXCHANGER: This server
|
148
|
+
will serve as a primary mail exchanger for example.com''s mail.: This configuration
|
149
|
+
has been manually selected.\n</pre></blockquote>Done<br />\n<br />Rebuilding
|
150
|
+
Apache Conf<br />Restore CompleteAccount Restore Complete\nUnlocking password
|
151
|
+
for user changeme.passwd: Success.<br />"}}}'
|
152
|
+
http_version: '1.1'
|
153
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
154
|
+
- request:
|
155
|
+
method: get
|
76
156
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=privsfdsa
|
77
|
-
body:
|
78
|
-
|
79
|
-
|
157
|
+
body:
|
158
|
+
encoding: US-ASCII
|
159
|
+
string: ''
|
160
|
+
headers:
|
161
|
+
Authorization:
|
80
162
|
- WHM root:iscool
|
81
|
-
response:
|
82
|
-
status:
|
163
|
+
response:
|
164
|
+
status:
|
83
165
|
code: 200
|
84
166
|
message: OK
|
85
|
-
headers:
|
86
|
-
|
167
|
+
headers:
|
168
|
+
Server:
|
87
169
|
- cpsrvd/11.28.64
|
88
|
-
|
170
|
+
Transfer-Encoding:
|
89
171
|
- chunked
|
90
|
-
|
172
|
+
Content-Type:
|
91
173
|
- text/plain
|
92
|
-
body:
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
174
|
+
body:
|
175
|
+
encoding: UTF-8
|
176
|
+
string: ! '{"metadata":{"result":0,"reason":"Unable to find archive at /backup/cpbackup/daily","version":1,"command":"restoreaccount"}}'
|
177
|
+
http_version: '1.1'
|
178
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
179
|
+
- request:
|
180
|
+
method: get
|
97
181
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=notexists
|
98
|
-
body:
|
99
|
-
|
100
|
-
|
182
|
+
body:
|
183
|
+
encoding: US-ASCII
|
184
|
+
string: ''
|
185
|
+
headers:
|
186
|
+
Authorization:
|
101
187
|
- WHM root:iscool
|
102
|
-
response:
|
103
|
-
status:
|
188
|
+
response:
|
189
|
+
status:
|
104
190
|
code: 200
|
105
191
|
message: OK
|
106
|
-
headers:
|
107
|
-
|
192
|
+
headers:
|
193
|
+
Server:
|
108
194
|
- cpsrvd/11.28.64
|
109
|
-
|
195
|
+
Transfer-Encoding:
|
110
196
|
- chunked
|
111
|
-
|
197
|
+
Content-Type:
|
112
198
|
- text/plain
|
113
|
-
body:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
199
|
+
body:
|
200
|
+
encoding: UTF-8
|
201
|
+
string: ! '{"metadata":{"result":0,"reason":"Unable to find archive at /backup/cpbackup/daily","version":1,"command":"restoreaccount"}}'
|
202
|
+
http_version: '1.1'
|
203
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
204
|
+
- request:
|
205
|
+
method: get
|
118
206
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=notexists
|
119
|
-
body:
|
120
|
-
|
121
|
-
|
207
|
+
body:
|
208
|
+
encoding: US-ASCII
|
209
|
+
string: ''
|
210
|
+
headers:
|
211
|
+
Authorization:
|
122
212
|
- WHM root:iscool
|
123
|
-
response:
|
124
|
-
status:
|
213
|
+
response:
|
214
|
+
status:
|
125
215
|
code: 200
|
126
216
|
message: OK
|
127
|
-
headers:
|
128
|
-
|
217
|
+
headers:
|
218
|
+
Server:
|
129
219
|
- cpsrvd/11.28.64
|
130
|
-
|
220
|
+
Transfer-Encoding:
|
131
221
|
- chunked
|
132
|
-
|
222
|
+
Content-Type:
|
133
223
|
- text/plain
|
134
|
-
body:
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
224
|
+
body:
|
225
|
+
encoding: UTF-8
|
226
|
+
string: ! '{"metadata":{"result":0,"reason":"Unable to find archive at /backup/cpbackup/daily","version":1,"command":"restoreaccount"}}'
|
227
|
+
http_version: '1.1'
|
228
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
229
|
+
- request:
|
230
|
+
method: get
|
139
231
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=changeme
|
140
|
-
body:
|
141
|
-
|
142
|
-
|
232
|
+
body:
|
233
|
+
encoding: US-ASCII
|
234
|
+
string: ''
|
235
|
+
headers:
|
236
|
+
Authorization:
|
143
237
|
- WHM root:iscool
|
144
|
-
response:
|
145
|
-
status:
|
238
|
+
response:
|
239
|
+
status:
|
146
240
|
code: 200
|
147
241
|
message: OK
|
148
|
-
headers:
|
149
|
-
|
242
|
+
headers:
|
243
|
+
Server:
|
150
244
|
- cpsrvd/11.28.64
|
151
|
-
|
245
|
+
Transfer-Encoding:
|
152
246
|
- chunked
|
153
|
-
|
247
|
+
Content-Type:
|
154
248
|
- text/plain
|
155
|
-
body:
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: ! '{"metadata":{"result":1,"reason":"OK","version":1,"command":"restoreaccount","output":{"raw":"Extracting
|
252
|
+
tarball...................\nDone<br />\nExtracting Domain....Done<br />\nDone<br
|
253
|
+
/>\n<br /><br />Restoring cpanel user config fileDone<br />\n<br />Restoring
|
254
|
+
reseller privs (if any)<br />Restoring Locale Setting<br />Restoring SSL keys
|
255
|
+
and CertificatesDone<br />\n<br />Restoring frontpage (if installed)Done<br
|
256
|
+
/>\n<br />Restoring access logs....\nDone<br />\n<br /><br />Restoring domain
|
257
|
+
keys....\nDone<br />\n<br /><br />Restoring DB MAP File....\nDone<br />\n<br
|
258
|
+
/><br /><span class=\"b2\">Restoring PostgreSQL databases....</span>\nPostgreSQL
|
259
|
+
is not installed. Skipping.<br/>\nRestoring Mailman listsDone<br />\n<br />Restoring
|
260
|
+
Mailman ArchivesDone<br />\n<br />Restoring shell<blockquote><pre>Current
|
261
|
+
shell /usr/local/cpanel/bin/noshell is up to date.\n</pre></blockquote>Done<br
|
262
|
+
/>\n<br />Restoring password<blockquote><pre></pre></blockquote>Done<br />\n<br
|
263
|
+
/>Restoring proftpd fileDone<br />\n<br />Resyncing FTP Passwords<blockquote><pre>Updating
|
264
|
+
ftp passwords for changemeFtp password files updated.Ftp vhost passwords synced</pre></blockquote>Done<br
|
265
|
+
/>\n<br />Linking old home directories<br />Parsing Domain Databases...ParkedDomains......AddonDomains...<br
|
266
|
+
/>Restoring Domains<br />\n<br />Restoring Bandwidth DataDone\n<br />Restoring
|
267
|
+
Counter Data<pre></pre><br />Restoring Homedir....<blockquote><pre></pre></blockquote>Done<br
|
268
|
+
/>\n<br />Doing fileprotect conversion<br />Restoring nobody owned filesDone<br
|
269
|
+
/>\n<br />Restoring userdata....\nDone<br />\n<br /><br />Restoring custom
|
270
|
+
virtualhost templates....\nConverting email to cPanel 5+ (if needed)<blockquote><pre></pre></blockquote>Done<br
|
271
|
+
/>\n<br />Cleaning up filters (if needed)<blockquote><pre>vfilter converter
|
272
|
+
v3.0Updating vfilter files to latest format.Running for changeme only (force=0)
|
273
|
+
(has_spam_acl=1)Processing changeme......Done</pre></blockquote>Done<br />\n<br
|
274
|
+
/>Fixing mail permissions<blockquote><pre></pre></blockquote>Done<br />\n<br
|
275
|
+
/>Restoring crontabDone<br />\nConverting to maildir if needed<blockquote><pre></pre></blockquote>Done<br
|
276
|
+
/>\nRestoring Dns Zones<blockquote><pre>Restoring zone: example.com.db\nUnable
|
277
|
+
to determine IP address for example.com!Could not get zone ip for example.com..
|
278
|
+
skipping changes.\n</pre></blockquote><br />Adding missing subdomain DNS entries
|
279
|
+
(if needed)<pre></pre><br />Updating SPF Records<blockquote><pre></pre></blockquote>Done<br
|
280
|
+
/>\n<br />Restoring quota<blockquote><pre></pre></blockquote>Done<br />\n<br
|
281
|
+
/><br />Update mail routing<blockquote><pre>LOCAL MAIL EXCHANGER: This server
|
282
|
+
will serve as a primary mail exchanger for example.com''s mail.: This configuration
|
283
|
+
has been manually selected.\n</pre></blockquote>Done<br />\n<br />Rebuilding
|
284
|
+
Apache Conf<br />Restore CompleteAccount Restore Complete\nUnlocking password
|
285
|
+
for user changeme.passwd: Success.<br />"}}}'
|
286
|
+
http_version: '1.1'
|
287
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
288
|
+
- request:
|
289
|
+
method: get
|
160
290
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=notexists
|
161
|
-
body:
|
162
|
-
|
163
|
-
|
291
|
+
body:
|
292
|
+
encoding: US-ASCII
|
293
|
+
string: ''
|
294
|
+
headers:
|
295
|
+
Authorization:
|
164
296
|
- WHM root:iscool
|
165
|
-
response:
|
166
|
-
status:
|
297
|
+
response:
|
298
|
+
status:
|
167
299
|
code: 200
|
168
300
|
message: OK
|
169
|
-
headers:
|
170
|
-
|
301
|
+
headers:
|
302
|
+
Server:
|
171
303
|
- cpsrvd/11.28.64
|
172
|
-
|
304
|
+
Transfer-Encoding:
|
173
305
|
- chunked
|
174
|
-
|
306
|
+
Content-Type:
|
175
307
|
- text/plain
|
176
|
-
body:
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
308
|
+
body:
|
309
|
+
encoding: UTF-8
|
310
|
+
string: ! '{"metadata":{"result":0,"reason":"Unable to find archive at /backup/cpbackup/daily","version":1,"command":"restoreaccount"}}'
|
311
|
+
http_version: '1.1'
|
312
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
313
|
+
- request:
|
314
|
+
method: get
|
181
315
|
uri: https://myhost.com:2087/json-api/restoreaccount?all=0&api.version=1&ip=0&mail=0&mysql=0&subs=0&type=daily&user=changeme
|
182
|
-
body:
|
183
|
-
|
184
|
-
|
316
|
+
body:
|
317
|
+
encoding: US-ASCII
|
318
|
+
string: ''
|
319
|
+
headers:
|
320
|
+
Authorization:
|
185
321
|
- WHM root:iscool
|
186
|
-
response:
|
187
|
-
status:
|
322
|
+
response:
|
323
|
+
status:
|
188
324
|
code: 200
|
189
325
|
message: OK
|
190
|
-
headers:
|
191
|
-
|
326
|
+
headers:
|
327
|
+
Server:
|
192
328
|
- cpsrvd/11.28.64
|
193
|
-
|
329
|
+
Transfer-Encoding:
|
194
330
|
- chunked
|
195
|
-
|
331
|
+
Content-Type:
|
196
332
|
- text/plain
|
197
|
-
body:
|
198
|
-
|
333
|
+
body:
|
334
|
+
encoding: UTF-8
|
335
|
+
string: ! '{"metadata":{"result":1,"reason":"OK","version":1,"command":"restoreaccount","output":{"raw":"Extracting
|
336
|
+
tarball...................\nDone<br />\nExtracting Domain....Done<br />\nDone<br
|
337
|
+
/>\n<br /><br />Restoring cpanel user config fileDone<br />\n<br />Restoring
|
338
|
+
reseller privs (if any)<br />Restoring Locale Setting<br />Restoring SSL keys
|
339
|
+
and CertificatesDone<br />\n<br />Restoring frontpage (if installed)Done<br
|
340
|
+
/>\n<br />Restoring access logs....\nDone<br />\n<br /><br />Restoring domain
|
341
|
+
keys....\nDone<br />\n<br /><br />Restoring DB MAP File....\nDone<br />\n<br
|
342
|
+
/><br /><span class=\"b2\">Restoring PostgreSQL databases....</span>\nPostgreSQL
|
343
|
+
is not installed. Skipping.<br/>\nRestoring Mailman listsDone<br />\n<br />Restoring
|
344
|
+
Mailman ArchivesDone<br />\n<br />Restoring shell<blockquote><pre>Current
|
345
|
+
shell /usr/local/cpanel/bin/noshell is up to date.\n</pre></blockquote>Done<br
|
346
|
+
/>\n<br />Restoring password<blockquote><pre></pre></blockquote>Done<br />\n<br
|
347
|
+
/>Restoring proftpd fileDone<br />\n<br />Resyncing FTP Passwords<blockquote><pre>Updating
|
348
|
+
ftp passwords for changemeFtp password files updated.Ftp vhost passwords synced</pre></blockquote>Done<br
|
349
|
+
/>\n<br />Linking old home directories<br />Parsing Domain Databases...ParkedDomains......AddonDomains...<br
|
350
|
+
/>Restoring Domains<br />\n<br />Restoring Bandwidth DataDone\n<br />Restoring
|
351
|
+
Counter Data<pre></pre><br />Restoring Homedir....<blockquote><pre></pre></blockquote>Done<br
|
352
|
+
/>\n<br />Doing fileprotect conversion<br />Restoring nobody owned filesDone<br
|
353
|
+
/>\n<br />Restoring userdata....\nDone<br />\n<br /><br />Restoring custom
|
354
|
+
virtualhost templates....\nConverting email to cPanel 5+ (if needed)<blockquote><pre></pre></blockquote>Done<br
|
355
|
+
/>\n<br />Cleaning up filters (if needed)<blockquote><pre>vfilter converter
|
356
|
+
v3.0Updating vfilter files to latest format.Running for changeme only (force=0)
|
357
|
+
(has_spam_acl=1)Processing changeme......Done</pre></blockquote>Done<br />\n<br
|
358
|
+
/>Fixing mail permissions<blockquote><pre></pre></blockquote>Done<br />\n<br
|
359
|
+
/>Restoring crontabDone<br />\nConverting to maildir if needed<blockquote><pre></pre></blockquote>Done<br
|
360
|
+
/>\nRestoring Dns Zones<blockquote><pre>Restoring zone: example.com.db\nUnable
|
361
|
+
to determine IP address for example.com!Could not get zone ip for example.com..
|
362
|
+
skipping changes.\n</pre></blockquote><br />Adding missing subdomain DNS entries
|
363
|
+
(if needed)<pre></pre><br />Updating SPF Records<blockquote><pre></pre></blockquote>Done<br
|
364
|
+
/>\n<br />Restoring quota<blockquote><pre></pre></blockquote>Done<br />\n<br
|
365
|
+
/><br />Update mail routing<blockquote><pre>LOCAL MAIL EXCHANGER: This server
|
366
|
+
will serve as a primary mail exchanger for example.com''s mail.: This configuration
|
367
|
+
has been manually selected.\n</pre></blockquote>Done<br />\n<br />Rebuilding
|
368
|
+
Apache Conf<br />Restore CompleteAccount Restore Complete\nUnlocking password
|
369
|
+
for user changeme.passwd: Success.<br />"}}}'
|
370
|
+
http_version: '1.1'
|
371
|
+
recorded_at: Wed, 07 Mar 2012 21:53:52 GMT
|
372
|
+
recorded_with: VCR 2.0.0
|
373
|
+
...
|