Maintenance


Backing up PostgreSQL database (deployed on dokku)

To dump db data from a postgres db:
$ dokku postgres: export mtnpak_db > backup.dump

To import data from a dump:
$ doku postgres:import mtnpak_db < backup.dump

The general format is:

# To dump data:
$ dokku postgres:export <db_service> > <backupname>

# To import data:
$ dokku postgres:import <db_service> < <backupname>