Postgres on Heroku and dumping single table to dump file

前端 未结 3 1917
悲&欢浪女
悲&欢浪女 2020-12-13 18:27

I am using Postgres on Heroku and am needing to dump one table from my production DB and dump it into my staging DB. I have the heroku tool belt installed, but am not sure h

3条回答
  •  旧巷少年郎
    2020-12-13 19:27

    @catsbys answer

    I needed to add the port as well

    pg_dump --no-acl --no-owner -h [host ip].compute-1.amazonaws.com -p [port] -U [user name] -t [table name] --data-only [database name] > table.dump

提交回复
热议问题