Kievbuy
7/25/2018 - 9:08 AM

Database backup - PostrgeSQL

If Access Denied:

Write into directory where postgres user has write access. For instance /tmp.

$ sudo su - postgres

$ pg_dump -h localhost mydb >/tmp/tempfile