pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
GNU tar and PITR
3+ messages / 2 participants
[nested] [flat]

* GNU tar and PITR
@ 2007-07-16 10:01  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2007-07-16 10:01 UTC (permalink / raw)
  To: pgsql-docs

http://developer.postgresql.org/pgdocs/postgres/continuous-archiving.html 
says:

"""
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.
"""

However, GNU tar returns 2 for a real error and 1 for the file changed case.  
Isn't that sufficient?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: GNU tar and PITR
@ 2007-07-16 10:05  Peter Eisentraut <peter_e@gmx.net>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2007-07-16 10:05 UTC (permalink / raw)
  To: pgsql-docs

Am Montag, 16. Juli 2007 12:01 schrieb Peter Eisentraut:
> http://developer.postgresql.org/pgdocs/postgres/continuous-archiving.html
> says:
>
> """
> 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.
> """
>
> However, GNU tar returns 2 for a real error and 1 for the file changed
> case. Isn't that sufficient?

Ah ...

"""
version 1.16 - Sergey Poznyakoff, 2006-10-21

* After creating an archive, tar exits with code 1 if some files were
changed while being read.  Previous versions exited with code 2 (fatal
error), and only if some files were truncated while being archived.
"""

We should update the documentation.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: GNU tar and PITR
@ 2007-07-16 22:22  Bruce Momjian <bruce@momjian.us>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2007-07-16 22:22 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-docs

Peter Eisentraut wrote:
> Am Montag, 16. Juli 2007 12:01 schrieb Peter Eisentraut:
> > http://developer.postgresql.org/pgdocs/postgres/continuous-archiving.html
> > says:
> >
> > """
> > 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.
> > """
> >
> > However, GNU tar returns 2 for a real error and 1 for the file changed
> > case. Isn't that sufficient?
> 
> Ah ...
> 
> """
> version 1.16 - Sergey Poznyakoff, 2006-10-21
> 
> * After creating an archive, tar exits with code 1 if some files were
> changed while being read.  Previous versions exited with code 2 (fatal
> error), and only if some files were truncated while being archived.
> """
> 
> We should update the documentation.

Docs updated, patch attached.

-- 
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

Attachments:

/rtmp/diff (text/x-diff, 1.6K) download Index: backup.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/backup.sgml,v retrieving revision 2.98 retrieving revision 2.99 diff -c -r2.98 -r2.99 *** backup.sgml 29 Jun 2007 15:46:21 -0000 2.98 --- backup.sgml 16 Jul 2007 22:20:51 -0000 2.99 *************** *** 734,746 **** complaints of this sort from real errors. For example, some versions of <application>rsync</> return a separate exit code for <quote>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 <application>tar</> consider it an error if a file ! is changed while <application>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 <application>tar</>'s messages. ! GNU <application>tar</> is therefore not the best tool for making base ! backups. </para> <para> --- 734,744 ---- complaints of this sort from real errors. For example, some versions of <application>rsync</> return a separate exit code for <quote>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 ! <application>tar</> consider it an error if a file is changed while ! <application>tar</> is copying it. Fortunately, GNU ! <application>tar</> versions 1.16 and later exit with <literal>1</> ! if files changed during the backup, and <literal>2</> for other errors. </para> <para>
^ permalink raw reply [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-07-16 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-07-16 10:01 GNU tar and PITR Peter Eisentraut <peter_e@gmx.net>
2007-07-16 10:05 ` Peter Eisentraut <peter_e@gmx.net>
2007-07-16 22:22   ` Bruce Momjian <bruce@momjian.us>

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