From ganesh@magnusquest.com Fri Oct 17 09:14:59 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C8EDCD1B555 for ; Fri, 17 Oct 2003 09:14:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 90964-09 for ; Fri, 17 Oct 2003 06:14:30 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id 92304D1B55F for ; Fri, 17 Oct 2003 06:14:27 -0300 (ADT) Received: from ganesan ([219.93.76.2]) by mqsporttec.com (8.12.10/8.11.6) with ESMTP id h9H9EKcK019071 for ; Fri, 17 Oct 2003 17:14:22 +0800 (MYT) From: "Ganesan Kanavathy" To: Subject: File system level backup Date: Fri, 17 Oct 2003 17:13:52 +0800 Message-ID: <000001c3948f$010a43f0$1300a8c0@headquarters.mq.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C394D2.0F2D83F0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.6 tagged_above=0.0 required=5.0 tests=HTML_80_90, RCVD_IN_RFCI X-Spam-Level: * X-Archive-Number: 200310/199 X-Sequence-Number: 10760 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C394D2.0F2D83F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dear all, All the while I was doing pg_dump as backup method for my pgsql db. Today I came across File system level backup on Postgresql Documentation. After reading it, I am quite unsure whether File system level backup is better than pg_dump. Furthermore, do we really need to do File system level backup or pg_dump is good enough? Any suggestion is much appreciated. Regards, ganesh ------=_NextPart_000_0001_01C394D2.0F2D83F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Dear all,

 

All the while I was doing pg_dump as backup method for my pgsql db. Today I came = across File system level backup= on Postgr= esql Documentation.

 

After reading it, I am quite unsure whether File system level backup = is better than pg_dump. <= /p>

 

Furthermore, do we really need to do File = system level backup or pg_dump is good enough?

 

Any suggestion is much appreciated.

 

Regards,

ganesh

------=_NextPart_000_0001_01C394D2.0F2D83F0-- From ganesh@magnusquest.com Wed Oct 22 01:12:59 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B9C72D1B501 for ; Wed, 22 Oct 2003 01:12:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 87830-02 for ; Tue, 21 Oct 2003 22:12:32 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id 6661CD1B4E9 for ; Tue, 21 Oct 2003 22:12:28 -0300 (ADT) Received: from ganesan ([219.93.76.2]) by mqsporttec.com (8.12.10/8.11.6) with ESMTP id h9M1CSKT019734 for ; Wed, 22 Oct 2003 09:12:30 +0800 (MYT) From: "Ganesan Kanavathy" To: Subject: Re: File system level backup Date: Wed, 22 Oct 2003 09:12:01 +0800 Message-ID: <004401c39839$83dc0c20$1300a8c0@headquarters.mq.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0045_01C3987C.91FF4C20" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <000001c3948f$010a43f0$1300a8c0@headquarters.mq.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=HTML_80_90, HTML_FONT_COLOR_BLUE, IN_REP_TO, ORIGINAL_MESSAGE, RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200310/266 X-Sequence-Number: 10827 This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C3987C.91FF4C20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Please help me with question. So far no replies. Regards, ganesh -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Ganesan Kanavathy Sent: Friday, October 17, 2003 5:14 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] File system level backup Dear all, All the while I was doing pg_dump as backup method for my pgsql db. Today I came across File system level backup on Postgresql Documentation. After reading it, I am quite unsure whether File system level backup is better than pg_dump. Furthermore, do we really need to do File system level backup or pg_dump is good enough? Any suggestion is much appreciated. Regards, ganesh ------=_NextPart_000_0045_01C3987C.91FF4C20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Please help me with question. So far no replies.

 

Regards,

ganesh=

 

-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] = On Behalf Of Ganesan Kanavathy
Sent:
Friday, October 17, 2003= 5:14 PM
To: pgsql-admin@postgresql.o= rg
Subject: [ADMIN] File system= level backup

 

Dear all,

 

All the while I was doing pg_d= ump as backup method for my pgsql db. Today I came across File system level backup on Postgresql Documentation.

 

After reading it, I am quite unsure whether File system level backup is better than pg_dump.

 

Furthermore, do we really need to do File system level backup or pg_dump is good enough?

 

Any suggestion is much appreciated.

 

Regards,

ganesh=

------=_NextPart_000_0045_01C3987C.91FF4C20-- From ganesh@magnusquest.com Wed Oct 22 01:13:38 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 453BCD1B500 for ; Wed, 22 Oct 2003 01:13:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 85908-05 for ; Tue, 21 Oct 2003 22:13:10 -0300 (ADT) Received: from mqsporttec.com (evilgods.net [128.121.126.6]) by svr1.postgresql.org (Postfix) with ESMTP id 09828D1B501 for ; Tue, 21 Oct 2003 22:13:06 -0300 (ADT) Received: from ganesan ([219.93.76.2]) by mqsporttec.com (8.12.10/8.11.6) with ESMTP id h9M1D7Ru019830 for ; Wed, 22 Oct 2003 09:13:09 +0800 (MYT) From: "Ganesan Kanavathy" To: Subject: Re: File system level backup Date: Wed, 22 Oct 2003 09:12:40 +0800 Message-ID: <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_004A_01C3987C.A9322BB0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <000001c3948f$010a43f0$1300a8c0@headquarters.mq.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=HTML_80_90, HTML_FONT_COLOR_BLUE, IN_REP_TO, ORIGINAL_MESSAGE, RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200310/267 X-Sequence-Number: 10828 This is a multi-part message in MIME format. ------=_NextPart_000_004A_01C3987C.A9322BB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Please help me with question. So far no replies. Regards, ganesh -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Ganesan Kanavathy Sent: Friday, October 17, 2003 5:14 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] File system level backup Dear all, All the while I was doing pg_dump as backup method for my pgsql db. Today I came across File system level backup on Postgresql Documentation. After reading it, I am quite unsure whether File system level backup is better than pg_dump. Furthermore, do we really need to do File system level backup or pg_dump is good enough? Any suggestion is much appreciated. Regards, ganesh ------=_NextPart_000_004A_01C3987C.A9322BB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Please help me with question. So far no replies.

 

Regards,

ganesh=

 

-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] = On Behalf Of Ganesan Kanavathy
Sent:
Friday, October 17, 2003= 5:14 PM
To: pgsql-admin@postgresql.o= rg
Subject: [ADMIN] File system= level backup

 

Dear all,

 

All the while I was doing pg_d= ump as backup method for my pgsql db. Today I came across File system level backup on Postgresql Documentation.

 

After reading it, I am quite unsure whether File system level backup is better than pg_dump.

 

Furthermore, do we really need to do File system level backup or pg_dump is good enough?

 

Any suggestion is much appreciated.

 

Regards,

ganesh=

------=_NextPart_000_004A_01C3987C.A9322BB0-- From pgman@candle.pha.pa.us Wed Oct 22 01:38:49 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1C588D1B4E1 for ; Wed, 22 Oct 2003 01:38:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 94478-07 for ; Tue, 21 Oct 2003 22:38:21 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 00FC9D1B4E9 for ; Tue, 21 Oct 2003 22:38:16 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h9M1cIU01950; Tue, 21 Oct 2003 21:38:18 -0400 (EDT) From: Bruce Momjian Message-Id: <200310220138.h9M1cIU01950@candle.pha.pa.us> Subject: Re: File system level backup In-Reply-To: <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> To: Ganesan Kanavathy Date: Tue, 21 Oct 2003 21:38:18 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/268 X-Sequence-Number: 10829 pg_dump is fine, in fact better. For a file system backup, you have to stop the postmaster, backup, then restart it. --------------------------------------------------------------------------- Ganesan Kanavathy wrote: > Please help me with question. So far no replies. > > Regards, > ganesh > > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Ganesan Kanavathy > Sent: Friday, October 17, 2003 5:14 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] File system level backup > > Dear all, > > All the while I was doing pg_dump as backup method for my pgsql db. > Today I came across File system level backup on Postgresql > Documentation. > > After reading it, I am quite unsure whether File system level backup is > better than pg_dump. > > Furthermore, do we really need to do File system level backup or pg_dump > is good enough? > > Any suggestion is much appreciated. > > Regards, > ganesh -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 From jal@jal.org Wed Oct 22 02:25:34 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A17BED1B4E1 for ; Wed, 22 Oct 2003 02:25:34 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 95628-08 for ; Tue, 21 Oct 2003 23:25:06 -0300 (ADT) Received: from frankenbride.clueinc.net (xd84b4366.ip.e-nt.net [216.75.67.102]) by svr1.postgresql.org (Postfix) with ESMTP id 746D7D1B500 for ; Tue, 21 Oct 2003 23:25:02 -0300 (ADT) Received: by frankenbride.clueinc.net (Postfix, from userid 16220) id 74F87B8B5; Tue, 21 Oct 2003 22:25:03 -0400 (EDT) Date: Tue, 21 Oct 2003 22:25:03 -0400 From: Jamie Lawrence To: Ganesan Kanavathy Cc: pgsql-admin@postgresql.org Subject: Re: File system level backup Message-ID: <20031022022503.GA28374@clueinc.net> Mail-Followup-To: Ganesan Kanavathy , pgsql-admin@postgresql.org References: <000001c3948f$010a43f0$1300a8c0@headquarters.mq.com> <004401c39839$83dc0c20$1300a8c0@headquarters.mq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004401c39839$83dc0c20$1300a8c0@headquarters.mq.com> User-Agent: Mutt/1.3.28i Organization: clue inc X-URL: http://www.clueinc.net/ X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/283 X-Sequence-Number: 10844 > Dear all, > > All the while I was doing pg_dump as backup method for my pgsql db. > Today I came across File system level backup on Postgresql > Documentation. > > After reading it, I am quite unsure whether File system level backup is > better than pg_dump. You have to look at your needs. > Furthermore, do we really need to do File system level backup or pg_dump > is good enough? File system level backup is typically complicated to design, and is specific to your needs. pg_dump is nearly universally usable, but might not meet your needs, if you are a 24x7 shop. Online backup is almost always specific to your site, usually a big deal to set up, and rarely impossible. > Any suggestion is much appreciated. Without more information about what you're doing, I can't say anything more. But most likely, pg_dump will work for you. It covers most cases. -j -- Jamie Lawrence jal@jal.org Helpful Hint: Unbreakable toys can be used to break other toys. From threshar@torgo.978.org Wed Oct 22 12:39:11 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 928ACD1B541 for ; Wed, 22 Oct 2003 12:39:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 95454-08 for ; Wed, 22 Oct 2003 09:38:43 -0300 (ADT) Received: from dhcp-7-248.ma.lycos.com (waltham-nat.ma.lycos.com [209.202.205.1]) by svr1.postgresql.org (Postfix) with SMTP id AAC90D1B4EF for ; Wed, 22 Oct 2003 09:38:19 -0300 (ADT) Received: (qmail 6699 invoked from network); 22 Oct 2003 12:38:21 -0000 Received: from dhcp-7-41.ma.lycos.com (HELO squeegit) (10.124.7.41) by dhcp-7-248.ma.lycos.com with SMTP; 22 Oct 2003 12:38:21 -0000 Date: Wed, 22 Oct 2003 08:38:00 -0400 From: Jeff To: "Ganesan Kanavathy" Cc: pgsql-admin@postgresql.org Subject: Re: File system level backup Message-Id: <20031022083800.53139e66.threshar@torgo.978.org> In-Reply-To: <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> References: <000001c3948f$010a43f0$1300a8c0@headquarters.mq.com> <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/270 X-Sequence-Number: 10831 On Wed, 22 Oct 2003 09:12:40 +0800 "Ganesan Kanavathy" wrote: > All the while I was doing pg_dump as backup method for my pgsql db. > Today I came across File system level backup on Postgresql > Documentation. > If you do a filesystem level backup the only "safe" way to do this is to either stop postgres and then backup, or if you are using a logical volume manager take a snapshot. You cannot just "tar" a "live" pgdata directory as the contents will change as tar goes through each file and you'll be left with a corrupt database. -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/ From scott.marlowe@ihs.com Wed Oct 22 15:24:50 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 87FCCD1B544 for ; Wed, 22 Oct 2003 15:24:50 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 25973-09 for ; Wed, 22 Oct 2003 12:24:19 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 36183D1B538 for ; Wed, 22 Oct 2003 12:24:18 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h9MFMqDd016452; Wed, 22 Oct 2003 09:22:53 -0600 (MDT) Date: Wed, 22 Oct 2003 09:11:41 -0600 (MDT) From: "scott.marlowe" To: Ganesan Kanavathy Cc: Subject: Re: File system level backup In-Reply-To: <004901c39839$9b0eebb0$1300a8c0@headquarters.mq.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/274 X-Sequence-Number: 10835 On Wed, 22 Oct 2003, Ganesan Kanavathy wrote: > All the while I was doing pg_dump as backup method for my pgsql db. > Today I came across File system level backup on Postgresql > Documentation. > > After reading it, I am quite unsure whether File system level backup is > better than pg_dump. > > Furthermore, do we really need to do File system level backup or pg_dump > is good enough? The two are more complementary than equivalent. Here's a short list of the pros and cons of each: Advantages of pg_dump: * transportable between versions of postgresql / other RDBMSs * can be run while the database is up and get a consistent snapshot * can be run from a remote machine easily. Disadvantages of pg_dump: * slower than a file system backup * may require hand editing of the dump before restoring (rare, but has happened due to some obscure bugs.) Advantages of file level backup: * Very fast * Can be used to clone a database quickly * Is a great way to backup a database before a minor revision (i.e. 7.3.3 to 7.3.4) in case things go horribly wrong. Disadvantages of file level backup: * Server needs to be shut down to get a consistent backup * file level database backups are not very portable. I.e. if you want to restore a file level backup, the target database must be running the same base version of postgresql, must be on the same architecture, and must have many of the compile time options be the same, or it won't work. Generally, pg_dump is preferred, but file level backups have their place.