new GNU tar has warning options, useful for base backups

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: new GNU tar has warning options, useful for base backups
Date: 2011-10-06 09:25:28
Message-ID: 1317893128.9081.6.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Until recently, when using GNU tar for creating base backups, you'd have
to ignore "file changed as we read it" and "file removed before we read
it" warnings, which would require a bit of craftiness if you wanted to
hide these messages while still seeing other warnings and errors from
tar.

As of GNU tar 1.23, there is a --warning option to selectively turn off
warnings. So you now could/should do something like this:

tar -C "$PGDATA" -c --warning=no-file-changed --warning=no-file-removed -f "$outname" .

This might be a good addition to the documentation, but I notice that we
don't have any recipe for calling tar in the documentation to begin
with.

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-10-06 10:19:11 Re: Double sorting split patch
Previous Message Oleg Bartunov 2011-10-06 08:58:59 Re: WIP: SP-GiST, Space-Partitioned GiST