Copying a database from one heroku app to another

Sonntag, 01. November 2020, 19:04 Uhr | roberto@vasquez-angel.de |

  1. Create a backup

    $> heroku pg:backups capture –app source-app-12345

  2. Show backup infos:

    $> heroku pg:backups:info –app source-app-12345

  3. Select the backup number bxxx.

  4. Restore the backup to the target database:

    $> heroku pg:backups:restore source-app-12345::bxxx DATABASE_URL –remote target-app