How to backup and restore database of django from one app to another app?


I have created a new django app on heroku and want to create a backup of the database.
After this I want to restore this database to newly created app.
How this can be achieved?

asked 2 years, 1 month ago
Reputation: 1

1 Answer


Create Backup

Let’s first create the backup of database of kodefork app.

$ heroku pg:backups:capture --app kodefork


List all backups

To See the list of all the backups created for kodefork app

$ heroku pg:backups --app kodefork


Download the backup of database

$ heroku pg:backups:download

Restore Backup

To restore the backup b002 of kodefork app to kodefork-new app

$ heroku pg:backups:restore kodefork::b002 DATABASE_URL --app kodefork-new


answered 2 years, 1 month ago
Reputation: 1

Your Answer

Nothing to preview

Post Answer

Asked:  2 years, 1 month ago
Viewed:  569 times
Active:  2 years, 1 month ago