pg dump - PostgreSQL: Database backup and Recovery? -


what procedure take database backup , recovery in postgresql 9.3?

i using sql dump same, getting error near pg_dump.

--example

pg_dump testdb > backupfile 

--error occurred

error:  syntax error @ or near "pg_dump"   line 1: pg_dump testdb > backupfile   

use below command take database backup locally

pg_dump -u postgres -h 127.0.0.1 -p 5432 -fc -f filename.backup -w dbname 

if want take database backup remotely use remote ipaddress in place of 127.0.0.1.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -