I need to automatically back up a PostgreSQL server, I have a command that does this backup but it always asks me for the password and I did not find a command where I can already determine the password of the database already in Script . The command I have is:
pg_dump.exe --host 127.0.0.1 --port 5432 --username postgres --format Custom --file C: \ Backup \ Backup_dates.backup
What I need is a command where I already set the access password, so that when the command is executed I do not need to manually put the password of the bank. If you have any ideas.