Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- 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