RE: pg_dump backup utility is taking more time around 24hrs to take the backup of 28GB

From: Kevin Brannen <KBrannen(at)efji(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: pg_dump backup utility is taking more time around 24hrs to take the backup of 28GB
Date: 2018-10-19 19:57:05
Message-ID: SN1PR19MB025525C6B5D070FDE787535CA4F90@SN1PR19MB0255.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: Raghavendra Rao J S V [mailto:raghavendrajsv(at)gmail(dot)com]
Sent: Thursday, October 18, 2018 7:26 AM
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: pg_dump backup utility is taking more time around 24hrs to take the backup of 28GB

Hi All,

We are using pg_dump backup utility in order to take the backup of the database. Unfortunately,it is taking around 24hrs of time to take the backup of 28GB database. Please guide me how to reduce the time and is there any parameter need to be modified which will help us to reduce the backup time. We are using Postgres 9.2 version

Note:-Kindly suggest me options using pg_dump only.

--
Regards,
Raghavendra Rao
===========================================

I agree with Ozz, be sure you’re dumping to another drive than what your DB sits on.
Investigate the “-f d” option, and the “-j” option can be useful too. I’ll also point out that hardware makes a big difference. :)

We can dump a 180G DB in about 15min. Note, that is to an SSD RAID array and we do “-f d -j $num_cpus_minus_2” and there are 32 cpus on the server (so -j 30).

HTH,
Kevin

This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, distribution, review, copy or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, and destroy the original transmission and its attachments without reading them or saving them to disk. Thank you.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2018-10-19 23:18:35 Re: pg_dump backup utility is taking more time around 24hrs to take the backup of 28GB
Previous Message Steve Crawford 2018-10-19 16:48:39 Re: PGDG status and policy