Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6FaJ-0003mn-B9 for pgsql-general@arkaria.postgresql.org; Mon, 24 Feb 2020 15:23:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6FaI-0000tQ-5d for pgsql-general@arkaria.postgresql.org; Mon, 24 Feb 2020 15:23:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6FaH-0000tJ-OV for pgsql-general@lists.postgresql.org; Mon, 24 Feb 2020 15:23:49 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j6FaC-0001J0-Pg for pgsql-general@postgresql.org; Mon, 24 Feb 2020 15:23:48 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id BCCD31B38742D for ; Mon, 24 Feb 2020 08:23:43 -0700 (MST) Date: Mon, 24 Feb 2020 08:23:43 -0700 (MST) From: bvo To: pgsql-general@postgresql.org Message-ID: <1582557823739-0.post@n3.nabble.com> Subject: backup broken MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, my pg_backup_rotated.sh script ran fine since Dec 20 and after rebuild the slave now it's broken and I do not know why. I can run pg_dumpall > /tmp_all_db_backup.sql but not from the script. From the log its pg_dumall: could not connect to database "template1": FATAL: Ident authentication failed for user "postgres". I tried to reset postgres in psql as "alter user postgres with PASSWORD 'xxxxx'; (as same as the old one and the postgres os). I run pg_backup_rotated.sh as postgres and it promp me for the password and then password for user postges and repeat it again and again until all the databases backup.