Database Reference
In-Depth Information
Importing in Heroku Postgres
To import the dump of your database to Heroku, the first step is to upload the file some-
where accessible via an HTTP URL; after that, you can restore the backup through the pg-
backups:restore command:
$ heroku pgbackups:restore DATABASE_URL
'http://your-server.com/mydb.dump' --app your-app-name
Tip
You have to add the dump file on your website and include the URL in the preceding com-
mand. It is highly recommended to remove the dump file generated after the backup re-
store.
Search WWH ::




Custom Search