Guest User

Untitled

a guest
Aug 2nd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. test# export PGPASSWORD="xxxxxxx"; for database in `psql --username=postgres --command='list' -h localhost | grep '^ [a-zA-Z0-9]' | awk '{print $1};'`; do pg_dump -U postgres ${database} > ${database}.sql; done
  2.  
  3. pg_dump: [archiver (db)] connection to database "template0" failed: FATAL: database "template0" is not currently accepting connections
Add Comment
Please, Sign In to add comment