Copying a database from one heroku app to another
Sonntag, 01. November 2020, 19:04 Uhr | roberto@vasquez-angel.de |-
Create a backup
$> heroku pg:backups capture –app source-app-12345
-
Show backup infos:
$> heroku pg:backups:info –app source-app-12345
-
Select the backup number bxxx.
-
Restore the backup to the target database:
$> heroku pg:backups:restore source-app-12345::bxxx DATABASE_URL –remote target-app