Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xw7bR-0001mz-8L for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Dec 2014 10:56:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xw7bQ-0005ad-Kc for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Dec 2014 10:56:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xw7bO-0005aU-KX for pgsql-bugs@postgresql.org; Wed, 03 Dec 2014 10:56:10 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xw7bJ-0004Nw-Au for pgsql-bugs@postgresql.org; Wed, 03 Dec 2014 10:56:07 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 229A12869D; Wed, 3 Dec 2014 02:56:03 -0800 (PST) Received: from EX13-CAS-006.vmware.com (EX13-CAS-006.vmware.com [10.113.191.56]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 1C20F400E9; Wed, 3 Dec 2014 02:56:03 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-004.vmware.com (10.113.191.24) with Microsoft SMTP Server (TLS) id 15.0.913.22; Wed, 3 Dec 2014 02:56:50 -0800 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Wed, 3 Dec 2014 02:56:02 -0800 Message-ID: <547EEC2C.40202@vmware.com> Date: Wed, 3 Dec 2014 12:55:40 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-Version: 1.0 To: , Subject: Re: BUG #11949: pg_basebackup creates defective tar file References: <20141112143632.2529.76272@wrigleys.postgresql.org> In-Reply-To: <20141112143632.2529.76272@wrigleys.postgresql.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 11/12/2014 04:36 PM, hendrik.grewe@udo.edu wrote: > The following bug has been logged on the website: > > Bug reference: 11949 > Logged by: Hendrik Grewe > Email address: hendrik.grewe@udo.edu > PostgreSQL version: 9.3.5 > Operating system: Ubuntu Linux 12.04 / Kernel 3.13.0-39 > Description: > > Hi! > Somehow pg_basebackup constructs defective tar files if invoked like > > pg_basebackup --pgdata=/path/to/folder --format=tar --label="pg_backup on > 2012.10.21" > > The resulting base.tar in path/to/folder is somwhat corrupted. > It is possible to untar this file but it is somehow impossible to add a file > to the generate base.tar file throug > > tar --append --file /path/to/folder/base.tar someFileToAddToArchive > > This is also an error within TAR, because it silently (Exit Code 0) fails to > add the File `someFileToAddToArchive`. But this faulty try to add the file > results in a changed/repaired base.tar. If one trys to append the file on > this tampered tar it will work and the file is actually added to the tar. > Bugreport to TAR project is on its way, also. https://lists.gnu.org/archive/html/bug-tar/2014-11/msg00006.html > Since other "handmade" tars do work on appending files, the generated > base.tar file by pg_basebackup must be somhow broken. The conclusion on bug-tar list seems to be that this is a bug in GNU tar, and the file created by pg_basebackup is correct. I just wanted to add that you can work-around this by passing the "-b 1" option to tar. With that, it seems to work. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs