pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Filesystem Backup
4+ messages / 3 participants
[nested] [flat]

* Filesystem Backup
@ 2002-02-03 13:54 manav <manav@glue.umd.edu>
  2002-02-03 22:49 ` Re: Filesystem Backup David Stanaway <david@netventures.com.au>
  2002-02-04 16:28 ` Re: Filesystem Backup Naomi Walker <nwalker@eldocomp.com>
  0 siblings, 2 replies; 4+ messages in thread

From: manav @ 2002-02-03 13:54 UTC (permalink / raw)
  To: pgsql-admin

Hello All,

 

I am in a fix and need help. I am reinstalling postgresql server on my
linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but
when I deleted the data directory and reconstructed it from my backup
(without the reinstall, just to check if things would work) I started
seeing errors (I mv' the data directory twice...) 

The first error was "postmaster.opt.default not found in
../pgsql/data/postmaster.opt.default' and when I created an empty file
it said '../pgsql/data/base/template1/pg_class not found'.

 

Am I missing something? are there any other steps to a filesystem
backup?

 

-sonny

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

* Re: Filesystem Backup
  2002-02-03 13:54 Filesystem Backup manav <manav@glue.umd.edu>
@ 2002-02-03 22:49 ` David Stanaway <david@netventures.com.au>
  1 sibling, 0 replies; 4+ messages in thread

From: David Stanaway @ 2002-02-03 22:49 UTC (permalink / raw)
  To: pgsql-admin; +Cc: manav <manav@glue.umd.edu>

On Monday, February 4, 2002, at 12:54  AM, manav wrote:

> Hello All,
>
>  
>
> I am in a fix and need help. I am reinstalling postgresql server on my 
> linux workstation and\ I did a filesystem backup of ../pgsql/data/*, 
> but when I deleted the data directory and reconstructed it from my 
> backup (without the reinstall, just to check if things would work) I 
> started seeing errors (I mv' the data directory twice...)
>
> The first error was "postmaster.opt.default not found in 
> ../pgsql/data/postmaster.opt.default' and when I created an empty file 
> it said '../pgsql/data/base/template1/pg_class not found'.
>

What version of PostgreSQL do you have installed? Is it the same version 
as the data directory that you backed up?

I had the problem once when I was experimenting with a different 
filesystem that I messed up the ownership/perms of the data directory.
Is it owned by the user that postmaster runs as? (pgsql or postgres 
depending on distribution)


==============================
David Stanaway
Personal: david@stanaway.net
Work: david@netventures.com.au

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

* Re: Filesystem Backup
  2002-02-03 13:54 Filesystem Backup manav <manav@glue.umd.edu>
@ 2002-02-04 16:28 ` Naomi Walker <nwalker@eldocomp.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Naomi Walker @ 2002-02-04 16:28 UTC (permalink / raw)
  To: manav <manav@glue.umd.edu>; pgsql-admin


If I understand correctly, the only time a pure file system restore would 
work to put back your data was if the instance was down when the file 
systems were backed up.  Otherwise, pg_dump of a database, or pg_dumpall of 
the whole instance would be necessary.

If you were doing this for some other reason, this might not pertain.  What 
started this adventure?

At 08:54 AM 2/3/02 -0500, manav wrote:

>Hello All,
>
>
>
>I am in a fix and need help. I am reinstalling postgresql server on my 
>linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but 
>when I deleted the data directory and reconstructed it from my backup 
>(without the reinstall, just to check if things would work) I started 
>seeing errors (I mv' the data directory twice...)
>
>The first error was "postmaster.opt.default not found in 
>../pgsql/data/postmaster.opt.default' and when I created an empty file it 
>said '../pgsql/data/base/template1/pg_class not found'.
>
>
>
>Am I missing something? are there any other steps to a filesystem backup?
>
>
>
>-sonny

--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242 

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

* Re: Filesystem Backup
@ 2002-02-05 00:28 manav <manav@glue.umd.edu>
  0 siblings, 0 replies; 4+ messages in thread

From: manav @ 2002-02-05 00:28 UTC (permalink / raw)
  To: pgsql-admin

Well the pg_dump(all) utils give a version mismatch, I guess my DB is
7.1.3 and the utils are some other version (how do I check the versions
correctly?) dunno how that happened. How can I upgrade the utils and
leave the DB engine untouched? It's a redhat linux box so rpms would be
preferrd.

Thanks for the response, and yes I made sure the server went down before
I did the fs backup.

sonny

"Naomi Walker" <nwalker@eldocomp.com> wrote in message
news:<4.2.2.20020204092555.00abeac0@ecint.ecinet.com>...
> --=====================_405291708==_.ALT
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> 
> 
> If I understand correctly, the only time a pure file system restore 
> would
> work to put back your data was if the instance was down when the file 
> systems were backed up.  Otherwise, pg_dump of a database, or
pg_dumpall of 
> the whole instance would be necessary.
> 
> If you were doing this for some other reason, this might not pertain.

> What
> started this adventure?
> 
> At 08:54 AM 2/3/02 -0500, manav wrote:
> 
> >Hello All,
> >
> >
> >
> >I am in a fix and need help. I am reinstalling postgresql server on 
> >my
> >linux workstation and\ I did a filesystem backup of ../pgsql/data/*,
but 
> >when I deleted the data directory and reconstructed it from my backup

> >(without the reinstall, just to check if things would work) I started

> >seeing errors (I mv' the data directory twice...)
> >
> >The first error was "postmaster.opt.default not found in
> >../pgsql/data/postmaster.opt.default' and when I created an empty
file it 
> >said '../pgsql/data/base/template1/pg_class not found'.
> >
> >
> >
> >Am I missing something? are there any other steps to a filesystem 
> >backup?
> >
> >
> >
> >-sonny
> 
> --
> Naomi Walker
> Chief Information Officer
> Eldorado Computing, Inc.
> 602-604-3100  ext 242
> --=====================_405291708==_.ALT
> Content-Type: text/html; charset="us-ascii"
> 
> <html>
> <br>
> If I understand correctly, the only time a pure file system restore 
> would work to put back your data was if the instance was down when the

> file systems were backed up.&nbsp; Otherwise, pg_dump of a database, 
> or pg_dumpall of the whole instance would be necessary.&nbsp; <br> 
> <br> If you were doing this for some other reason, this might not
> pertain.&nbsp; What started this adventure?<br>
> <br>
> At 08:54 AM 2/3/02 -0500, manav wrote:<br>
> <br>
> <font face="arial" size=2><blockquote type=cite cite>Hello All,<br>
> </font><br>
> &nbsp;<br>
> <br>
> I am in a fix and need help. I am reinstalling postgresql server on my
> linux workstation and\ I did a filesystem backup of ../pgsql/data/*,
but
> when I deleted the data directory and reconstructed it from my backup
> (without the reinstall, just to check if things would work) I started
> seeing errors (I mv' the data directory twice...) <br>
> <br>
> The first error was &quot;postmaster.opt.default not found in
> ../pgsql/data/postmaster.opt.default' and when I created an empty file
it
> said '../pgsql/data/base/template1/pg_class not found'.<br>
> <br>
> &nbsp;<br>
> <br>
> Am I missing something? are there any other steps to a filesystem
> backup?<br>
> <br>
> &nbsp;<br>
> <br>
> -sonny</blockquote><br>
> <div>--</div>
> <div>Naomi Walker</div>
> <div>Chief Information Officer</div>
> <div>Eldorado Computing, Inc.</div>
> 602-604-3100&nbsp; ext 242 
> </html>
> 
> --=====================_405291708==_.ALT--
> 




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


end of thread, other threads:[~2002-02-05 00:28 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-03 13:54 Filesystem Backup manav <manav@glue.umd.edu>
2002-02-03 22:49 ` David Stanaway <david@netventures.com.au>
2002-02-04 16:28 ` Naomi Walker <nwalker@eldocomp.com>
2002-02-05 00:28 Re: Filesystem Backup manav <manav@glue.umd.edu>

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