From: blast <carlosd2002@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Backup&Restore Postgres DB
Date: Mon, 22 Mar 2010 03:38:20 -0700 (PDT)
Message-ID: <27984540.post@talk.nabble.com> (raw)
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.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: carlosd2002@hotmail.com
Subject: Re: Backup&Restore Postgres DB
In-Reply-To: <27984540.post@talk.nabble.com>
* 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