2016-03-19 147 views
1

我試圖將heroku備份從heroku導出到本地機器。我正在使用下一個命令:heroku pg:backups capturecurl -o latest.dump heroku pg:backups public-url。最後一個讓我接下來的輸出中:從Heroku導出備份Postgres

curl: (6) Could not resolve host: heroku 
curl: (6) Could not resolve host: pg 
curl: (6) Could not resolve host: public-url 

當我試圖取代heroku pg:backups public-url與網址,導致數據庫(我得到了使用heroku pg:backups public-url命令),我得到了下:

curl: (60) SSL certificate problem: unable to get local issuer certificate 
More details here: http://curl.haxx.se/docs/sslcerts.html 

curl performs SSL certificate verification by default, using a "bundle" 
of Certificate Authority (CA) public keys (CA certs). If the default 
bundle file isn't adequate, you can specify an alternate file 
using the --cacert option. 
If this HTTPS server uses a certificate signed by a CA represented in 
the bundle, the certificate verification probably failed due to a 
problem with the certificate (it might be expired, or the name might 
not match the domain name in the URL). 
If you'd like to turn off curl's verification of the certificate, use 
the -k (or --insecure) option. 
'X-Amz-Credential' is not recognized as an internal or external command, 
operable program or batch file. 
'X-Amz-Date' is not recognized as an internal or external command, 
operable program or batch file. 
'X-Amz-Expires' is not recognized as an internal or external command, 
operable program or batch file. 
'X-Amz-SignedHeaders' is not recognized as an internal or external command, 
operable program or batch file. 
'X-Amz-Signature' is not recognized as an internal or external command, 
operable program or batch file. 

那麼我如何解決它並將heroku postgres導出到本地機器?謝謝你。

回答

0

你正在尋找的單排是:

curl -o latest.dump $(heroku pg:backups public-url | cat) 

現在有關該錯誤:您可以下載的瀏覽器URL(heroku pg:backups public-url | cat)?你在Mac上嗎?你可以運行並報告結果openssl version