postgresql - pg_dump windows command prompt invalid command -


trying using pg_dump backup postgres db

i connected through command prompt , here command following tutorial http://www.postgresqltutorial.com/postgresql-backup-database/

pg_dump -u postgres -w -f t lucz_2017 > x:\postgres_backup\lucz_backup.tar 

it gives me error

invalid command \postgres_backup. try \? help. 

what doing wrong?

the db name , paths correct

windows 7 running cmd

you running pg_dump psql. out of psql , run pg_dump command windows command prompt. pg_dump own executable, different psql.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -