pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem with backup...
2+ messages / 1 participants
[nested] [flat]

* Problem with backup...
@ 2005-04-07 08:49  Marcin Giedz <marcin.giedz@eulerhermes.pl>
  0 siblings, 1 reply; 2+ messages in thread

From: Marcin Giedz @ 2005-04-07 08:49 UTC (permalink / raw)
  To: pgsql-admin

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?

Thx,
Marcin






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

* Re: Problem with backup...
@ 2005-04-07 09:58  Marcin Giedz <marcin.giedz@eulerhermes.pl>
  parent: Marcin Giedz <marcin.giedz@eulerhermes.pl>
  0 siblings, 0 replies; 2+ messages in thread

From: Marcin Giedz @ 2005-04-07 09:58 UTC (permalink / raw)
  To: pgsql-admin

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



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


end of thread, other threads:[~2005-04-07 09:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-07 08:49 Problem with backup... Marcin Giedz <marcin.giedz@eulerhermes.pl>
2005-04-07 09:58 ` Marcin Giedz <marcin.giedz@eulerhermes.pl>

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