pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Giedz <marcin.giedz@eulerhermes.pl>
To: pgsql-admin@postgresql.org
Subject: Re: Problem with backup...
Date: Thu, 7 Apr 2005 11:58:49 +0200
Message-ID: <200504071158.49996.marcin.giedz@eulerhermes.pl> (raw)
In-Reply-To: <200504071049.22677.marcin.giedz@eulerhermes.pl>
References: <200504071049.22677.marcin.giedz@eulerhermes.pl>

Dnia czwartek, 7 kwietnia 2005 10:49, Marcin Giedz napisaƂ:
> Hello...
>
>
> Here is procedure of making everyday online backup:
> 1) select pg_start_backup('xxx');
> 2) tar -cf backup-xxx.tar /mnt/db/pg1
> 3) select pg_stop_backup();
> rm all archived WAL files before special one taken from backup_log
> 4) tar -cf var-xx.tar /mnt/db/var
>
> Next I'd like to use this copy on my test machine. So I copy backup-xxx.tar
> and var-xxx.tar and untar these files. Directories structure on test are
> the same like on production machine. But when I try to run pg_ctl only
> empty log file is created but postmaster doesn't run.
> Can anyone please tell me what I'm doing wrong?
OK .... I will answer myself ;)  I've turned on postmaster with debug mode and 
found that pg data directory was world writable/readable - so "chmod -R 
700 /mnt/db/pg1" and postmaster have run OK ;)

Thx,
Marcin


>
> Thx,
> Marcin
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq



view thread (2+ messages)

Message-ID: <200504071158.49996.marcin.giedz@eulerhermes.pl>
Permalink:  ../200504071158.49996.marcin.giedz@eulerhermes.pl/
Also on:    postgresql.org/message-id/200504071158.49996.marcin.giedz@eulerhermes.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: marcin.giedz@eulerhermes.pl
  Subject: Re: Problem with backup...
  In-Reply-To: <200504071158.49996.marcin.giedz@eulerhermes.pl>
  References: <200504071049.22677.marcin.giedz@eulerhermes.pl> <200504071158.49996.marcin.giedz@eulerhermes.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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