Re: Suppress checking of chmod 700 on data-dir?

From: Johannes Konert <jkonert(at)t3go(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Suppress checking of chmod 700 on data-dir?
Date: 2007-06-11 07:03:15
Message-ID: 466CF3B3.90407@t3go.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joshua D. Drake wrote:
> Johannes Konert wrote:
>> But that is not my point. The question is where I can change the
>> enforced chmod 700 postgresql always wants me to set.
> You can't.
>
> You can however change the postgresql.conf to put look for files
> somewhere besides $PGDATA and thus you would be able to back them up.
With postgresql.conf I can change the path to the data-dir, but
postgresql checks the chmod 700 on that directory either. So only the
logfiles can be written and accessed somewhere else. The data itself is
still only accessible by the postgres-user.
> Anything else in there you should be grabbing via pg_dump anyway.
So you suggest not to backup the filesystem-files, but to do a dump
instead? Does this work together with PITR as described in 23.3.
(http://www.postgresql.org/docs/8.2/interactive/continuous-archiving.html#BACKUP-BASE-BACKUP).
I want to make a full backup every night of a heavy DB while it is
running. Combined with short-term-WAL-archiving. Getting the WAL-files
is easy by using the config-parameter archive_command, but to copy and
backup the "base backup" once a day is impossible if I cannot access the
data-files.
Will the described backup&restore work as well with a dump + WAL-files?
Then I could forget about copying the file-system-files....

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2007-06-11 08:13:20 Re: how to speed up query
Previous Message Robert Treat 2007-06-11 05:23:35 Re: When should I worry?