Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9301333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:59:28+00:00 2026-06-18T22:59:28+00:00

I can dump a heroku database with $ heroku pgbackups:capture . Also, this SO

  • 0

I can dump a heroku database with $ heroku pgbackups:capture. Also, this SO post shows that there are tools for taking a development database and dumping it to seed.rb.

I’m wondering if there is an easy way to combine the two processes, effectively dumping the data from a production Heroku database into my local seeds.rb for more realistic development testing.

If this is possible, what’s the cleanest way to do this?

Update:

Based on the insightful answer from dB’, I may consider using PGSQL locally. I am still interested, however, in the seed.rb aspect of the question if there is a way to do that easily.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T22:59:29+00:00Added an answer on June 18, 2026 at 10:59 pm

    There are a couple ways to accomplish such a thing. @dB’ has outlined one of them – using the PG Backups add-on to export your database. It’s a great options but involves a few (trivial) manual commands.

    I would recommend using the pg:transfer Heroku CLI plugin to transfer the data in a single step. Under the covers it’s still very much the same thing happening as with using PG Backups, but it’s packaged a bit nicer and has some useful defaults.

    From your app’s directory, copy your production database locally (assuming a local PG db), by installing the plugin and execute the pg:transfer command.

    $ heroku plugins:install https://github.com/ddollar/heroku-pg-transfer
    $ heroku pg:transfer
    

    There are a couple options you can set as well. See my writeup for more details.

    Hope that helps! And yes, please do use the same database during development as you do in production.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get a SQL dump of a SQL Server 2008 database? That
How can I dump each table in database in separate file with that table
I run these three commands everyday: cd /Users/xxx/code heroku pgbackups:capture --expire curl -o latest.dump
In classic ASP, you can dump a recordset into an array using getRows(). This
I am looking for a command line utility on *nix, that can dump the
I understand I can dump data with this common mongodump --db mydb This command
I need a tool that can dump the referenced types used by an assembly
I am looking for a python script that can dump ELF file (of type
Is there a ruby equivalent of ColdFusions cfdump tag. which can dump any object
Python newbie here. I'm writing a script that can dump some output to either

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.