Thread: pg_dump backup utility is taking more time around 24hrs to take thebackup of 28GB
pg_dump backup utility is taking more time around 24hrs to take thebackup of 28GB
Raghavendra Rao
Re: pg_dump backup utility is taking more time around 24hrs to takethe 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 versionNote:-Kindly suggest me options using pg_dump only.--Regards,
Raghavendra Rao
RE: pg_dump backup utility is taking more time around 24hrs to takethe backup of 28GB
From: Raghavendra Rao J S V [mailto:raghavendrajsv@gmail.com]
Sent: Thursday, October 18, 2018 7:26 AM
To: pgsql-general@lists.postgresql.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
Re: pg_dump backup utility is taking more time around 24hrs to takethe 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