0

Need help backing up a database in enterprisedb. The pg_dumpall command doesn't work. When I run the command, it says can't connect to the database. I connect to the database and run the command, it doesn't give any errors, but the file doesn't show up in the location I saved it.

Nuri Tasdemir
  • 9,720
  • 3
  • 42
  • 67
Phil
  • 1
  • 1

1 Answers1

0

Try using pg_dumpall -d dbname -f outputfile.

Or if your database is in a different server, use pg_dumpall -h hostname -p port -U username -d dbname -f outputfile

Lohit Gupta
  • 1,045
  • 6
  • 11