I\'m trying to create a cronjob to back up my database every night before something catastrophic happens. It looks like this command should meet my needs:
0
the easiest way in my opinion, this: you edit you main postgres config file: pg_hba.conf there you have to add the following line:
host
and after this you need start you cron thus:
pg_dump -h 127.0.0.1 -U
and it worked without password