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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

asp.net - Configuring WCF Services in Code WCF 4.5 -