From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: hendrik.grewe@udo.edu
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11949: pg_basebackup creates defective tar file
Date: Wed, 3 Dec 2014 12:55:40 +0200
Message-ID: <547EEC2C.40202@vmware.com> (raw)
In-Reply-To: <20141112143632.2529.76272@wrigleys.postgresql.org>
References: <20141112143632.2529.76272@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, hendrik.grewe@udo.edu
Subject: Re: BUG #11949: pg_basebackup creates defective tar file
In-Reply-To: <547EEC2C.40202@vmware.com>
References: <20141112143632.2529.76272@wrigleys.postgresql.org> <547EEC2C.40202@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox