2016-03-19 22 views
1

herokuからローカルマシンにherokuバックアップをエクスポートしようとしています。私は次のコマンドを使用しています:heroku pg:backups capturecurl -o latest.dump heroku pg:backups public-url。最後のものは私に次のouputを与える:Heroku Postgresからバックアップをエクスポートする

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

私は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

関連する問題