Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

backup postgres

pg_dumpall -U postgres -h localhost -f pg12bak.sql

NB: you will be prompted to enter your password severally and to avoid that:
https://stackoverflow.com/questions/50404041/pg-dumpall-without-prompting-password
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #backup #postgres
ADD COMMENT
Topic
Name
7+9 =