title: How to provide password in one script to connect to postgresql database
body: <p>I want to backup my postgresql database with a automatic backup program and that program only support a script line that backup with pg_dump.
  I can't provide password in this script so I changed method from pg_hba.conf file from md5 to trust so that it won't ask for password and I used --no-password option.
  How can I change this to md5 and provide password for it.</p>