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

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -