3

I'm done with the pgbackups process.

First, I installed the pgbackups addon (HEROKU) via command: heroku addons:add pgbackups

Second, I login using heroku auth:login command

Third, I capture the backup by running the command: heroku pgbackups:capture --app myapp

Fourth, I get the url of the backup by heroku pgbackups:url b002

So I accessed the url that I saw after running the command: heroku pgbackups: url b002

in this format: https://s3.amazonaws.com/hkpgbackups/app2955630@heroku.com/b002.dump?AWSAccessKeyId=.......

something like that.

After that, I downloaded the file in .dump format

So now, I have the dump file and dont know what to do where to specifically use it...

Can somebody give me an advise to how to use the .dump file?

Please help me. I'm in trouble right now. I've to get a copy of our existing database from heroku.

4

1 回答 1

3

您的.dump文件应该是一个pg_dump文件,因此您需要在某处设置 PostgreSQL,然后使用该文件pg_restore将文件加载.dump到本地数据库中。

于 2012-07-16T02:52:54.543 回答