Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 9BAE99FB645 for ; Tue, 8 May 2007 12:26:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 92558-02-2 for ; Tue, 8 May 2007 12:25:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id B05789FBA6F for ; Tue, 8 May 2007 12:25:50 -0300 (ADT) Received: from [10.82.1.66] (docboy.decibel.org [65.86.67.34]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by noel.decibel.org (Postfix) with ESMTP id 1A8F356440; Tue, 8 May 2007 10:25:46 -0500 (CDT) In-Reply-To: <1178564286.23358.7.camel@dogma.v10.wvs> References: <1178564286.23358.7.camel@dogma.v10.wvs> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8C4728BC-E2DE-4E99-813A-3A15C3F97A80@decibel.org> Cc: pgsql-general@postgresql.org Content-Transfer-Encoding: 7bit From: Jim Nasby Subject: Re: PITR and tar Date: Tue, 8 May 2007 10:25:58 -0500 To: Jeff Davis X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/354 X-Sequence-Number: 113549 On May 7, 2007, at 1:58 PM, Jeff Davis wrote: > Second, it seems that it can cause a bad backup to occur if you > pass the > "z" option to tar. Instead, piping the output of tar through the > compression program seems to avoid that problem (i.e. "tar cf - ... | > gzip > ..."). I am using FreeBSD's tar, other implementations may be > different. What *exactly* are you seeing there? If anything -z should be safer than piping through gzip, since you could easily accidentally pipe stderr through gzip as well, which *would* corrupt the backup. > Are my observations correct, and if so, should they be documented as a > potential "gotcha" when making base backups? I believe the bit about tar complaining about changed files is already in there, no? -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)