How to pass in password to pg_dump?

后端 未结 16 758
深忆病人
深忆病人 2020-11-28 00:58

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          


        
16条回答
  •  有刺的猬
    2020-11-28 01:28

    You just need to open pg_hba.conf and sets trust in all methods. That's works for me. Therefore the security is null.

提交回复
热议问题