How do I transfer production database to staging on Heroku using pgbackups? Getting error

后端 未结 12 2469
刺人心
刺人心 2021-01-30 03:13

On Heroku, I am trying to copy the production database into my staging app using the pgbackups addon. I followed the instructions on the addon page: https://devcenter.heroku.com

12条回答
  •  天命终不由人
    2021-01-30 03:46

    This is what worked for me

    • Download the backup from heroku console and uploaded it to s3.
    • heroku pg:backups restore 'DUMP_FILE_URL_FROM_S3' DATABASE --app MY_APP

提交回复
热议问题