Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjTAS-0004w4-G6 for pgsql-admin@arkaria.postgresql.org; Wed, 29 Oct 2014 13:20:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjTAR-0002Th-St for pgsql-admin@arkaria.postgresql.org; Wed, 29 Oct 2014 13:20:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjTAQ-0002TV-OC for pgsql-admin@postgresql.org; Wed, 29 Oct 2014 13:20:02 +0000 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XjTAH-00061t-R1 for pgsql-admin@postgresql.org; Wed, 29 Oct 2014 13:20:01 +0000 Received: by mail-yh0-f47.google.com with SMTP id i57so544659yha.20 for ; Wed, 29 Oct 2014 06:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=eJ4t6t+h3nmr+hLiRSz24ZnzfIGLS6ozKzXHjdiqQXs=; b=ymWZlWg6hY9X86F4Gd0vuiYsH7JIG1ZzMn1ZcDbZu72jAKebg2WRUKE6erPNWn0CWU 8rARM2f9F1oLhy+m2yzj7POvOGnKdyQt8WXzWp9vYyfsE3yo9pO+rInvvcsYqE7zZz1R 5gfXD0WkhQ7CJCZz/5dR6nDpISnhs2AufVPtsfSIFupUDoMj31sDxuYQx0ixuS5gj/FL eQoxG1JaWrGAeY/ldBxjc3F/O72zFFPl3kGrdVH19xcB40+cd3eKDGz/38c7NVUwnlXc QeZsvIHN84b6lj6rSLOZva6lLk7jcHvCpn2bTCShJoHiVvoXRLfJJkbfIZJ1vaZeS9C9 uE2g== X-Received: by 10.236.46.1 with SMTP id q1mr754647yhb.185.1414588790751; Wed, 29 Oct 2014 06:19:50 -0700 (PDT) Received: from [192.168.254.2] (h77.89.102.166.static.ip.windstream.net. [166.102.89.77]) by mx.google.com with ESMTPSA id k28sm1933447yho.23.2014.10.29.06.19.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 06:19:50 -0700 (PDT) Message-ID: <5450E937.2070408@gmail.com> Date: Wed, 29 Oct 2014 09:18:47 -0400 From: John Scalia User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: A local replication entry Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org I think maybe it's just too early in the morning for me, but I can't seem to get a local entry for replication working. I'm trying to create a script for hourly backups using pg_basebackup, and here's the command I'm using: /usr/pgsql-9.3/bin/pg_basebackup -D - -Ft -z -c fast -l hourly.backup > backup_file.gz The entry in the pg_hba.conf file is: local replication postgres trust And the error is: FATAL: no pg_hba.conf entry for replication connection from host "[local]", user "postgres", SSL off, but I have gotten this to work only if I use a "-h 10.10.1.129" option for the command. This only works since another entry in the pg_hba.conf satisfies the command. Do I have an error with the local entry? Or are local entries even allowed for replication? As this has to be automatically deployed to various servers, I'd prefer to NOT specify each host's IP address both in pg_hba.conf file and in the script calling the pg_basebackup command. Oh, and at some point when this starts working, I am going to change the user from postgres to another without superuser capability. -- Jay -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin