heroku copy database code example
Example 1: heroku download database
$ heroku pg:backups:capture
$ heroku pg:backups:download
Example 2: heroku download database
$ heroku pg:backups:download
Example 3: copy database from one heroku app to another
heroku pg:copy app_name_to_copy_from::database_color_to_copy_from database_color_to_copy_to --app app_name_to_copy_to