Postgresql – Is there a way to add the password at a parameter and get it automatically when needed in a batch file?
I have the following batch file in windows, in order to backup postgresql daily. I will add this batch file to run daily at specific time in Task Scheduler. pg_dumpall --exclude-database='template1' --host=127.0.0.1 --port=1234 --username=myuser --password=mypass > mydb_export_all.sql However, postgresql contains…