pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Samrat Revagade <revagade.samrat@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Restore after using pg_dumpall
Date: Wed, 31 Jul 2013 00:00:38 -0700 (PDT)
Message-ID: <1375254038816-5765716.post@n5.nabble.com> (raw)
In-Reply-To: <6E551FFA49836D4290CA09616AE1CB9BB14718@EX01.SPDFRAK.BLN>
References: <6E551FFA49836D4290CA09616AE1CB9BB14718@EX01.SPDFRAK.BLN>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

>pg_dumpall > alldb.sql (store)
>and
>psql -f alldb.sql postgres (restore)
>is it necessary to drop existing objects (for example roles, ...) ?
>Any help is appreciated.

I think it is not necessary. pg_dumpall supports dumping of the entire
contents of a database cluster,  It backs up each database in a given
cluster, and also *preserves cluster-wide data such as role and tablespace
definition*s. hence if you want to take backup for entire cluster then you
can directly use pg_dumpall.

or if you have any specific need then you can use pg_dump and manually
preserve/delete other database objects .



-----
Greetings, 
Samrat Revagade, 
NTT-DATA-OSS Center (Pune)
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Restore-after-using-pg-dumpall-tp5765452p5765716.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)

Message-ID: <1375254038816-5765716.post@n5.nabble.com>
Permalink:  ../1375254038816-5765716.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1375254038816-5765716.post@n5.nabble.com

 · 

reply

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: revagade.samrat@gmail.com
  Subject: Re: Restore after using pg_dumpall
  In-Reply-To: <1375254038816-5765716.post@n5.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