autopostgresqlbackup postgresvalidation错误
我想在ec2实例的ubuntu上使用autopostgresqlbackup。 我可以在命令行上使用psqllogin,它正在拾取我的.pgpass文件,一切都很正常。 当我运行“sudo autopostgresqlbackup”它只是挂起,我的错误文件提到它正在等待postgres用户的密码。 这是我的configuration文件和错误日志。 我正在使用ubuntu用户,并且我的/home/ubuntu/.pgpass文件设置了0600权限。 我猜这是与我login的用户以及在SU_USERNAMEconfiguration行中指定的用户有关。 我应该设置SU_USERNAME = ubuntu吗? 任何帮助在这里将不胜感激。 谢谢。 在/ etc /默认/ autopostgresqlbackup # =============================== # === Debian specific options === #================================ # By default, on Debian systems, only 'postgres' user # is allowed to access PostgreSQL databases without password. # In order to dump databases we need to run pg_dump/psql # […]