Backup&Restore Postgres DB - Mailing list pgsql-admin

From blast
Subject Backup&Restore Postgres DB
Date
Msg-id 27984540.post@talk.nabble.com
Whole thread Raw
Responses Re: Backup&Restore Postgres DB  (Scott Mead <scott.lists@enterprisedb.com>)
List pgsql-admin
Hi all,

I need to backup and restore a DB.
In this particular case the data in the database is not important (strange
hum...) but only the schema to put new data...

I m thinking use the pg_dump:

pg_dump -c -C -s schema > file.out

With this i have in file.out the schema, correct?

So, to restore the db from scratch, for example to a new system, what should
i do?
it automatically creates all users, rolls, permissions etc?How?

What is the best way of doing it?


Many thanks

--
View this message in context: http://old.nabble.com/Backup-Restore-Postgres-DB-tp27984540p27984540.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


pgsql-admin by date:

Previous
From: Mark Rostron
Date:
Subject: upgrade 8.3.7 to 8.3.10 combined with ownership change
Next
From: Scott Mead
Date:
Subject: Re: Backup&Restore Postgres DB