From: | Jim Nasby <decibel(at)decibel(dot)org> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PITR and tar |
Date: | 2007-05-08 15:25:58 |
Message-ID: | 8C4728BC-E2DE-4E99-813A-3A15C3F97A80@decibel.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-general |
On May 7, 2007, at 1:58 PM, Jeff Davis wrote:
> Second, it seems that it can cause a bad backup to occur if you
> pass the
> "z" option to tar. Instead, piping the output of tar through the
> compression program seems to avoid that problem (i.e. "tar cf - ... |
> gzip > ..."). I am using FreeBSD's tar, other implementations may be
> different.
What *exactly* are you seeing there? If anything -z should be safer
than piping through gzip, since you could easily accidentally pipe
stderr through gzip as well, which *would* corrupt the backup.
> Are my observations correct, and if so, should they be documented as a
> potential "gotcha" when making base backups?
I believe the bit about tar complaining about changed files is
already in there, no?
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2007-05-08 17:14:24 | Re: PITR and tar |
Previous Message | Albe Laurenz | 2007-05-08 06:47:36 | Re: PITR and tar |
From | Date | Subject | |
---|---|---|---|
Next Message | Kirk Wythers | 2007-05-08 15:31:16 | Re: problem with a conditional statement |
Previous Message | Joel Dice | 2007-05-08 15:20:27 | Re: Dangers of fsync = off |