2016-03-19 7 views
1

Ich versuche Heroku Backup von Heroku auf meinen lokalen Rechner zu exportieren. Ich verwende den nächsten Befehl: heroku pg:backups capture und curl -o latest.dump heroku pg:backups public-url. Das letzte gibt mir die nächste ouput:Exportieren von Sicherungskopien von Heroku Postgres

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

Wenn ich versuche heroku pg:backups public-url mit URL zu ersetzen, die in der Datenbank führt (die ich heroku pg:backups public-url Befehl bekam verwenden), erhalte ich die nächste:

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. 

Also, wie ich es auflösen und Heroku Postgres auf lokale Maschine exportieren? Danke voraus.

Antwort

0

Die Single-Liner Sie suchen ist:

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

Jetzt über den Fehler: Können Sie diese URL herunterladen (heroku pg:backups public-url | cat) im Browser? Bist du auf einem Mac? Können Sie die Ergebnisse von openssl version

ausführen und melden