postgresql - How to use PGPASSFILE environment variable? -


i using areca backup program , wrote script in backup postgre database. want password via pgpass.conf file can't give it's path script. how can use pgpassfile ? script (; separator) :

-u;postgres;-w;-f;custom;-b;-f;d:\satraautobackup\daily\saturday\postgresql\geomolkbackup;geomolkportal2 

you can setting environement variable pgpassfile path of pgpass.conf , removing -w parameter.

ps: make sure set pgpass.conf in secure place , locking using ntfs permission exemple.

a use case here on wiki page


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -