postgresql - Dumping Database to Heroku app -


i've been trying dump database file heroku app.

i generated pg dump file calling

pg_dump mydb > db.sql 

then uploaded amazons3 , uploaded heroku via:

c:\users\user\documents\github\gvf-api>heroku pgbackups:restore  heroku_postgresql_green_url 's3.amazonaws.com/mydb' 

the fictional url works that's not issue

i retrieving... done , restoring... done message when run call.

problem no data in tables.

also i've used dump file re-create database on local machine successfully.

any suggestions?

i added following modifiers dump command suggested here,

pg_dump -fc --no-acl --no-owner -h localhost -u myuser mydb > mydb.dump  

after few minutes data did show up.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -