Can't backup a Postgres database: FATAL: Peer authentication failed for user "postgres"
In pg_hba.conf, change this line:

local   all             all                                     peer


to:

local   all             all                                     password


Then you can log in locally using a password.