Backup&Restore Postgres DB

Поиск
Список
Период
Сортировка
От blast
Тема Backup&Restore Postgres DB
Дата
Msg-id 27984540.post@talk.nabble.com
обсуждение исходный текст
Ответы Re: Backup&Restore Postgres DB  (Scott Mead <scott.lists@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: Mark Rostron
Дата:
Сообщение: upgrade 8.3.7 to 8.3.10 combined with ownership change
Следующее
От: Scott Mead
Дата:
Сообщение: Re: Backup&Restore Postgres DB