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 1nIAU2-0008JY-KY for pgsql-admin@arkaria.postgresql.org; Thu, 10 Feb 2022 14:31:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIAU1-0004ky-FZ for pgsql-admin@arkaria.postgresql.org; Thu, 10 Feb 2022 14:31:41 +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 1nIAU1-0004kp-4x for pgsql-admin@lists.postgresql.org; Thu, 10 Feb 2022 14:31:41 +0000 Received: from mout.perfora.net ([74.208.4.197]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIATt-0004Az-UO for pgsql-admin@lists.postgresql.org; Thu, 10 Feb 2022 14:31:40 +0000 Received: from [192.168.0.165] ([98.169.214.209]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MTAx6-1ni3bI0zxe-00S75c; Thu, 10 Feb 2022 15:31:30 +0100 Subject: Re: PG_Base Backup take 8 to 9Hrs To: Mladen Gogala Cc: pgsql-admin@lists.postgresql.org References: <91f9d08c-fb4b-5847-4663-e96994c1f460@gmail.com> From: MichaelDBA Message-ID: <627d342b-6054-bb08-86d0-15c0a8e58887@sqlexec.com> Date: Thu, 10 Feb 2022 09:31:28 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.54 MIME-Version: 1.0 In-Reply-To: <91f9d08c-fb4b-5847-4663-e96994c1f460@gmail.com> Content-Type: multipart/alternative; boundary="------------CCB68B8F8A14D65151BF4B17" Content-Language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: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------CCB68B8F8A14D65151BF4B17 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Please use a third party backup solution that provides faster and more flexible backup alternatives than the built in, pg_basebackup(), which is not usefult for large databases. pgbackrest (full, differential, and incremental) barman (full and incremental) Regards, Michael Vitale Mladen Gogala wrote on 2/9/2022 7:42 PM: > On 2/8/22 06:36, Ram Pratap Maurya wrote: >> >> We are using Postgres -11 version and current *PG DB size is 450 GB* . >> >> Archive log enable in Database and we are running Full *PG_Base >> backup* and it will take 8 to 9 Hrs to complete the backup , >> >> Please suggest  how to reduce the full DB backup time. >> > Use storage snapshots, faster disks, faster Ethernet adapters and > backup software that supports deduplication. You are asking the list > to architect your backup solution. For that, some more information is > needed: what kind of machine are you using, what OS, how much memory, > what kind of storage is your cluster running on, what kind of storage > are you backing it up to, how is the backup storage connected (FC/AL, > Ethernet, local SATA drives), is there any degree of parallelism and > things of that nature. In the absence of that information, I can only > recommend attempting with the --run-faster switch to pg_basebackup. > You may also try using the Force. > > -- > Mladen Gogala > Database Consultant > Tel: (347) 321-1217 > https://dbwhisperer.wordpress.com --------------CCB68B8F8A14D65151BF4B17 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Please use a third party backup solution that provides faster and more flexible backup alternatives than the built in, pg_basebackup(), which is not usefult for large databases.
pgbackrest (full, differential, and incremental)
barman (full and incremental)

Regards,
Michael Vitale

Mladen Gogala wrote on 2/9/2022 7:42 PM:
On 2/8/22 06:36, Ram Pratap Maurya wrote:

We are using Postgres -11 version and current PG DB size is 450 GB .

Archive log enable in Database and we are running Full PG_Base backup and it will take 8 to 9 Hrs to complete the backup ,

Please suggest  how to reduce the full DB backup time.

Use storage snapshots, faster disks, faster Ethernet adapters and backup software that supports deduplication. You are asking the list to architect your backup solution. For that, some more information is needed: what kind of machine are you using, what OS, how much memory, what kind of storage is your cluster running on, what kind of storage are you backing it up to, how is the backup storage connected (FC/AL, Ethernet, local SATA drives), is there any degree of parallelism and things of that nature. In the absence of that information, I can only recommend attempting with the --run-faster switch to pg_basebackup. You may also try using the Force.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

--------------CCB68B8F8A14D65151BF4B17--