pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
AW: AW: secure deletion of archived logs
2+ messages / 2 participants
[nested] [flat]

* AW: AW: secure deletion of archived logs
@ 2019-12-11 15:25 Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
  2019-12-11 15:52 ` Re: AW: AW: secure deletion of archived logs Stephen Frost <sfrost@snowman.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Zwettler Markus (OIZ) @ 2019-12-11 15:25 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

> 
> Greetings,
> 
> * Zwettler Markus (OIZ) (Markus.Zwettler@zuerich.ch) wrote:
> > We use "rsync" on XFS with "wsync" mount mode. I think this should do the job?
> 
> No, that just makes sure that namespace operations are executed synchronously,
> that doesn't provide any guarantee that the data has actually been written out and
> sync'd.
> 

What else? "rsync" on XFS mounted wsync + execute "sync" afterwards?


> > The tools mentioned will all do backup to disk.
> > We are required to do backup to tape.
> 
> Back up to disk first and then tar to tape.
> 
> Thanks,
> 
> Stephen


Markus





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

* Re: AW: AW: secure deletion of archived logs
  2019-12-11 15:25 AW: AW: secure deletion of archived logs Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
@ 2019-12-11 15:52 ` Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Stephen Frost @ 2019-12-11 15:52 UTC (permalink / raw)
  To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Greetings,

* Zwettler Markus (OIZ) (Markus.Zwettler@zuerich.ch) wrote:
> > * Zwettler Markus (OIZ) (Markus.Zwettler@zuerich.ch) wrote:
> > > We use "rsync" on XFS with "wsync" mount mode. I think this should do the job?
> > 
> > No, that just makes sure that namespace operations are executed synchronously,
> > that doesn't provide any guarantee that the data has actually been written out and
> > sync'd.
> 
> What else? "rsync" on XFS mounted wsync + execute "sync" afterwards?

I don't really agree with it, but pitrery uses 'dd' with 'conv=fsync'.
As far as I know, there isn't a way to force 'rsync' to run an fsync()
at the end, and executing a 'sync' afterwards, while it should work,
seems likely to cause you a lot more troubles..

In the end, I wouldn't suggest trying to hack up your own scripts to do
any of this- use one of the existing tools.  It's a lot more complicated
than I think you're appreciating.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

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


end of thread, other threads:[~2019-12-11 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 15:25 AW: AW: secure deletion of archived logs Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
2019-12-11 15:52 ` Stephen Frost <sfrost@snowman.net>

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