如何在 wget 中恢复下载 Google 外卖数据

如何在 wget 中恢复下载 Google 外卖数据

根据此处的讨论,我有 13 GB Gmail 数据

https://superuser.com/questions/1502126/13-66-gb-out-of-15-gb-used-in-gmail-delete-emails-that-c​​onsumed-space

我决定使用 google takeout 以 mbox 格式下载所有电子邮件。 24 小时后我签署并获得了下载所有数据的链接。我的连接速度很慢,所以当发生一些中断时,我决定切换到虚拟机内的手机 4G 连接,在虚拟机中下载数据,了解我如何获得 DNS 解析失败。所以我切换回宽带连接。

现在开始出现问题,我正在下载 13 GB 谷歌的第 1 部分,从通过谷歌生成的类似数据中取出数据,格式如下

debian@osboxes:~/Downloads$ wget -c https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
The name is too long, 1076 chars total.
Trying to shorten...
New name is 20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffff.
--2019-12-13 23:28:19--  https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
Resolving ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)... 100.100.100.100, 2404:6800:4002:80e::2001
Connecting to ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)|100.100.100.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14619080679 (14G) [application/mbox]
Saving to: ‘20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffff’

20191210T045548Z%2F-118364947890465   4%[==>                                                              ] 646.74M   159KB/s    in 77m 34s 

2019-12-14 00:46:06 (142 KB/s) - Read error at byte 678159986/14619080679 (Connection reset by peer). Retrying.

--2019-12-14 00:46:07--  (try: 2)  https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
Connecting to ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)|100.100.100.100|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
debian@osboxes:~/Downloads$ wget -c https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
The name is too long, 1076 chars total.
Trying to shorten...
New name is 20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffff.
--2019-12-14 00:46:54--  https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
Resolving ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘ffff-apidata.googleusercontent.com’
debian@osboxes:~/Downloads$ wget -c https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
The name is too long, 1076 chars total.
Trying to shorten...
New name is 20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffff.
--2019-12-14 00:49:17--  https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
Resolving ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)... 172.217.166.1
Connecting to ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)|172.217.166.1|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
debian@osboxes:~/Downloads$ wget -c https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
The name is too long, 1076 chars total.
Trying to shorten...
New name is 20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffff.
--2019-12-14 00:50:21--  https://ffff-apidata.googleusercontent.com/download/storage/v1/b/dataliberation/o/20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-a2f96dbc8e80%2F1%2Fa32b647d-0c0e-4ea7-9bb5-8d193671ce36?qk=AD5uMEt7CLm9l6vzhiNkCBTu0CFK40PSXxP9YEVW3cj6ZmGdNDXVTffffq99IL6gNLagLO8FDoBWEsVlO8A2a5ield7YUNM4BqXkaiKPxvqUadRHw8csda7Aas9nF9JGJniOj9xWC2q9F-NaCkGtgDCAcg3zfn3iFLxHD-oiLo4ulH2xdcFsfyIGhVXFgnjmEGr6zcDYQztrGqaSHojzjnFnZiB0c4_i4q-lqqlJo3Esc5pitpu1VpxFiY05YNXCY41RRWoIqS_1BeBMrdRoU4YCVSqJGBtS9hXKr8QgWIDQDbAw0FAiT9I3GxL8UbCbRRX8IcWGErFv_ST_aewgv-m5W0lphX9BciZHFmj8AslB61eiXOGjt-7tEehJ8QwBv5vuX3rPt56x2_EIr-dwStZHLD3zZMMvZTiwjqiwR39Ptd107HeBJPoSn3QxEplPL3sNXpKVyxqjJvQI0cFGtsSFUJjEUt5hWbjg6M08LpZ012W9SYVYZ26p_tDFQfiG01uBSoFM3ql_amggIHPsjwa1Gh69J1BBJfaRNr14hlZjalif8BSoey9ifM3Ze77l8yvtd2vl9hFn1TpS9_YL6THBNoe-1Z5BW1hD4p5WYMaS9BhBCGAq9JHR8FFwnVrXuerKDU-rNh9roID4ZOcs0hWIonSXtbC2cYph9dwWhlF-6i7v3FKcl193BEiFKWTczteXH3X3st7JjjKX_A0FULtQWWQv2_0eQyf3KCPK6JLHUc0CaR_n7uqCsrX8J9F4H8JgsMnbKU4fP08ucPAlbdUK2NLp5YaRw5BqDg9woVIlAtNwOjYzCXGW5RsSnCJktXqBMlSPhknJI84HrM9leM9QVbq7hKrqN4aBixTeTS45idnQiPT3pSW1yz6WaFIP4
Resolving ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)... 100.100.100.100, 2404:6800:4002:80e::2001
Connecting to ffff-apidata.googleusercontent.com (ffff-apidata.googleusercontent.com)|100.100.100.100|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

现在,当我尝试恢复下载时,我在 Firefox 中打开链接以再次下载所有数据,并生成新链接。对于新生成的链接,我再次尝试下载

debian@osboxes:~/Downloads$ wget -c https://takeout.google.com/takeout/download?j=ffff-9ac7-4c4d-826f-a2f96dbc8e80&i=0&user=116364599410907918080&rapt=ffff
[1] 8615
[2] 8616
[3] 8617
debian@osboxes:~/Downloads$ 
Redirecting output to ‘wget-log’.
^C
[1]   Done                    wget -c https://takeout.google.com/takeout/download?j=ffff-9ac7-4c4d-826f-a2f96dbc8e80
[2]-  Done                    i=0

当我执行 ls 来查看以前下载的文件名是什么时,我看到类似这样的东西

debian@osboxes:~/Downloads$ ls
'20191210T045548Z%2F-1183649478904650607%2F675b18b0-9ac7-4c4d-826f-

我无法理解在这种情况下如何恢复下载。以下是一些相关的截图
13 GB 邮箱数据
13GB数据截图2
因为我的互联网连接中断了,所以我必须使用 wget 并且我无法理解我犯了什么错误,如果由于任何原因下载被中断,以前下载的文件将变得毫无用处,我必须在线验证自己,再次生成下载链接,但是然后不知道如何使用以前下载的 600 Mb 或 700 Mb,在我的情况下,如果我开始一切,新的连接会再次中断,所以我遇到了先有鸡还是先有蛋的问题。

发出 wget -c 后

debian@osboxes:~/Downloads$ wget -c https://takeout.google.com/takeout/download?j=675b18b0-9ac7-4c4d-826f-a2f96dbc8e80&i=0&user=116364599410907918080&rapt=AEjHL4MhtvhATVMv-AiHyg
[1] 8874
[2] 8875
[3] 8876
debian@osboxes:~/Downloads$ 
Redirecting output to ‘wget-log.1’.

答案1

确保正确引用你的论点。&在 shell 命令中具有特殊含义(在后台运行命令,因此您会[1] [2] [3]无意中执行后台任务),因此对于包含该&字符的 URL,必须用引号引起来,否则会被误解。

$ wget http://some?special&url&parameters   # wrong
$ wget 'http://some?special&url&parameters' # correct

对于不正确的文件名,wget即使 URL 文件名和本地文件名不匹配,也能正常恢复,例如:

$ wget -O customname -c http://speed.hetzner.de/100MB.bin
--2019-12-13 21:01:41--  http://speed.hetzner.de/100MB.bin
Resolving speed.hetzner.de (speed.hetzner.de)... 88.198.248.254, 2a01:4f8:0:59ed::2
Connecting to speed.hetzner.de (speed.hetzner.de)|88.198.248.254|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 104857600 (100M), 54492347 (52M) remaining [application/octet-stream]
Saving to: ‘customname’

customname           67%[+++++++++===>       ]  67.20M  1.74MB/s    eta 20s

100MB.bin因此,该文件在网络服务器上被调用,但在其下保存并恢复customname并且可以正常工作。

然而,一般而言,恢复是一个必须由 Web 服务器支持的概念。如果网络服务器拒绝发送部分内容,您可能别无选择,只能从头开始重新下载所有内容。

另外我也不完全确定谷歌下载服务器是如何工作的。如果它每次都生成一个新链接,则它实际上可能不是同一个文件。有些地方提供动态生成的压缩存档下载,因此每次生成的存档都不同,尝试恢复会导致下载损坏。

如果您在某个地方有租用的虚拟服务器,您也可以先在那里下载,然后将其移至不稳定的家庭连接。

相关内容