Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 33BCB9F9D5B for ; Tue, 21 Aug 2007 22:33:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 10321-10 for ; Tue, 21 Aug 2007 22:33:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 7F4DC9F9935 for ; Tue, 21 Aug 2007 22:33:34 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id l7M1XYt15860; Tue, 21 Aug 2007 21:33:34 -0400 (EDT) From: Bruce Momjian Message-Id: <200708220133.l7M1XYt15860@momjian.us> Subject: Re: tar, but not gnu tar In-Reply-To: To: Tena Sakai Date: Tue, 21 Aug 2007 21:33:34 -0400 (EDT) CC: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/272 X-Sequence-Number: 26603 Tena Sakai wrote: > Hi Everybody, > > According to section 23.3.2 of 8.2.4 manual: > > Also, some versions of GNU tar consider it > an error if a file is changed while tar is > copying it. There does not seem to be any > very convenient way to distinguish this > error from other types of errors, other > than manual inspection of tar's messages. > GNU tar is therefore not the best tool for > making base backups. > > On my linux machine, gnu tar is the tar. Does > anybody have a suggestion as to where I can go > to get a tar that is not gnu? We have updated the 8.3 documentation to be more accurate about GNU tar: Some backup tools that you might wish to use emit warnings or errors if the files they are trying to copy change while the copy proceeds. This situation is normal, and not an error, when taking a base backup of an active database; so you need to ensure that you can distinguish complaints of this sort from real errors. For example, some versions of rsync return a separate exit code for vanished source files, and you can write a driver script to accept this exit code as a non-error case. Also, some versions of GNU tar consider it an error if a file is changed while tar is copying it. Fortunately, GNU tar versions 1.16 and later exit with 1 if files changed during the backup, and 2 for other errors. so your version of 'tar' might be fine. -- Bruce Momjian http://momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +