Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2005
    Location
    Auckland, New Zealand
    Posts
    3

    Default PostGreSQL - backup problem

    Hello,

    PostGreSQL was recently installed on our CPanel (10.6.0-R158) server.

    When the backup script (cpbackup) ran, it generated the following error:
    Grabbing PostgreSQL databases............
    psql: FATAL: no pg_hba.conf entry for host "[local]", user "postgres", database "template1", SSL off
    psql: FATAL: no pg_hba.conf entry for host "[local]", user "postgres", database "template1", SSL off
    "[local]" is not a valid entry for a host in pg_hba.conf.

    There have been a recent update to /scripts/cpbackup (on 14 September 2005). This is the first time the backup script would have run since this update, and the first backup since PostGreSQL was installed. (I'm running weekly backups.)

    Is this an error in a script? Any ideas about what I can do to fix it?

    -- Richard.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    47

    Default

    open file /var/lib/pgsql/data/pg_hba.conf

    add these line below

    local all all md5
    host all all 127.0.0.1 255.255.255.255 md5

    save and quit

    restart by using /scripts/restartsrv_postgres

Similar Threads & Tags
Similar threads

  1. Backup of PostgreSQL
    By zencpanel in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 10-16-2010, 02:38 AM
  2. PostgreSql backup failure
    By serg in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-28-2008, 06:15 PM
  3. Backup not backing up PostgreSQL
    By MRiscado in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-21-2007, 06:31 AM
  4. Restoring Backup error with PostgreSQL
    By linuxman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-08-2007, 12:43 PM
  5. Postgresql Database backup for the accounts
    By WMS in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-30-2003, 05:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube