2015-02-08 55 views
0

下載我使用VaultPress把我的WordPress博客的備份 https://dashboard.vaultpress.com/wget的不是正宗的HTTPS URL vaultpress

點擊下載備份按鈕後,該站點將我從哪裏可以下載的鏈接。當我點擊這個鏈接時,它開始在瀏覽器中下載我的備份,這很完美。但我試圖在我的Ubuntu系統中使用wgetcurl下載這個,但直到現在還沒有成功。以下是下載網址的樣子: https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=

[email protected]:~# wget https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<somehashedvalue> 
[5] 2229 
[6] 2230 
[6] Done     job=12345678 
[email protected]:~# --2015-02-08 02:25:07-- https://dashboard.vaultpress.com/12345/restore/?step=4 
Resolving dashboard.vaultpress.com (dashboard.vaultpress.com)... 192.0.96.249, 192.0.96.250 
Connecting to dashboard.vaultpress.com (dashboard.vaultpress.com)|192.0.96.249|:443... connected. 
HTTP request sent, awaiting response... 302 Found 
Location:/[following] 
--2015-02-08 02:25:09-- https://dashboard.vaultpress.com/ 
Reusing existing connection to dashboard.vaultpress.com:443. 
HTTP request sent, awaiting response... 302 Found 
Location: /account/login/ [following] 
--2015-02-08 02:25:09-- https://dashboard.vaultpress.com/account/login/ 
Reusing existing connection to dashboard.vaultpress.com:443. 
HTTP request sent, awaiting response... 200 OK 
Length: unspecified [text/html] 
Saving to: ‘index.html?step=4’ 

    [ <=>                         ] 7,709  --.-K/s in 0s  

2015-02-08 02:25:09 (20.9 MB/s) - ‘index.html?step=4’ saved [7709] 

PS:文件大小差不多是1GB。

然後我用用戶名/密碼:

[email protected]:~# wget --user <myusername> --password <mypassword> https://aboveurl

我甚至用--ask-password

[email protected]:~# wget --user <myusername> --ask-password https://aboveurl

但在這種情況下,而不是問密碼就完成了動作,然後要求對於另一個shell中的密碼(我不知道確切的詞),如下所示:

[email protected]:~# wget --user <myusername> --ask-password https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<hashedvalue> 
[1] 1979 
[2] 1980 
[email protected]:~# Password for user ‘<myusername>’: <mypassword-here> 
<mypassword>: command not found 

然後終於,我給一個嘗試curl

[email protected]:~# curl -u <myusername>:<mypassword> https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<hashedvalue> 
[5] 2010 
[6] 2011 
[email protected]:~# 

我不知道發生了什麼事?什麼是那些[5] 2010 [6] 2011 or [5] 2229

該解決方案還沒有工作: wget with authentication

回答

2

在URL中&符號使Linux創建在後臺運行的新進程。 PID打印在方括號中的數字後面。

寫雙引號內的URL,然後再試一次:

wget "https://dashboard.vaultpress.com/12345/restore/?step=4&job=12345678&check=<somehashedvalue>"