Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 从Heroku Postgres导出备份_Postgresql_Heroku - Fatal编程技术网

Postgresql 从Heroku Postgres导出备份

Postgresql 从Heroku Postgres导出备份,postgresql,heroku,Postgresql,Heroku,我正在尝试将heroku备份从heroku导出到我的本地计算机。我正在使用下一个命令:heroku pg:backups capture和curl-o latest.dump heroku pg:backups public url。最后一个给了我下一个输出: curl: (6) Could not resolve host: heroku curl: (6) Could not resolve host: pg curl: (6) Could not resolve host: public-

我正在尝试将heroku备份从heroku导出到我的本地计算机。我正在使用下一个命令:
heroku pg:backups capture
curl-o latest.dump heroku pg:backups public url
。最后一个给了我下一个输出:

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导出到本地机器呢?谢谢。您要找的单班轮是:

curl -o latest.dump $(heroku pg:backups public-url | cat)
现在,关于错误:您可以在浏览器中下载该url(
heroku pg:backups public url | cat
)吗?你在Mac电脑上吗?您能运行并报告openssl版本的结果吗