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
Post a Comment