Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyJu7-000776-If for pgsql-admin@arkaria.postgresql.org; Wed, 22 Jul 2020 18:55:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jyJu6-0004uz-Fi for pgsql-admin@arkaria.postgresql.org; Wed, 22 Jul 2020 18:55:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyJu6-0004us-8A for pgsql-admin@lists.postgresql.org; Wed, 22 Jul 2020 18:55:46 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyJu3-00075m-8R for pgsql-admin@postgresql.org; Wed, 22 Jul 2020 18:55:45 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jyJu1-0005Z5-TU; Wed, 22 Jul 2020 14:55:41 -0400 Date: Wed, 22 Jul 2020 14:55:41 -0400 From: Bruce Momjian To: Paul =?iso-8859-1?Q?F=F6rster?= Cc: vinod kale , pgsql-admin@postgresql.org Subject: Re: Encryption in pg_dump Message-ID: <20200722185541.GE3899@momjian.us> References: <2BCA8D4B-E94D-4F2F-99A5-D783912A1CDF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2BCA8D4B-E94D-4F2F-99A5-D783912A1CDF@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jul 20, 2020 at 03:24:16PM +0200, Paul Förster wrote: > Hi Vinod, > > > On 20. Jul, 2020, at 14:40, vinod kale wrote: > > > > Hello Team, > > > > I am using postgresql 10.8 version in our prod environment. We take dump backup on daily basis of full database. And this dump backup creates in human readable format. > > My requirement is backup should creates in encrypted format at the time of pg_dump running. > > Is there any way or any option available in pg_dump that will creates the backup in encrypted format or any tool available for same. > > sorry, no way. The only way you have is to pipe the output of pg_dump through some encryption tool. pg_dump does not offer to create encrypted dumps directly using some command line option. Does anyone know why we are getting so many requests for encrypting dumps all of a sudden? July 20 CAD7GeHRZ3tu8y9VG_0juVK3RQq6r+t6HciguEz_C8Eh85Hmq3A@mail.gmail.com July 10 CALLD-SGTbu0HCW8NGVg+ycC8PKn9opcbN7aw4CvLj3OVC-hw=Q@mail.gmail.com July 8 CAFiui6G0sgLoURsK61vmiPR1Amd7PQt82cvgdmZ7+ukdsbV1QQ@mail.gmail.com -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee