pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: robert.gravsjo@nsgroup.net
To: pgsql-admin@postgresql.org
Subject: Re: Consulta about BACKUP DB
Date: Fri, 2 Feb 2001 16:50:55 +0000 (UTC)
Message-ID: <95eohe$1f14$1@news.tht.net> (raw)
References: <Pine.LNX.4.21.0102021023230.20043-100000@ideay.net.ni>

In article <Pine.LNX.4.21.0102021023230.20043-100000@ideay.net.ni>,
	<vlal@ideay.net.ni> writes:
> Hi all,
> 
> I going to cahge machine, but I need to make backup of my database, my
> version of postgresql is: 6.5.3 now my version will be 7.0.
> 
> How can I to make the backup of tables, index and data?
> 
> Thanks in advanced.
> 
> 

Try
pg_dump databasename > datbase_dumpfile
to dump the database. Then create an empty database on the new server
and run
cat database_dumpfile | psql -d newdatabasename

I don't know what os your on, but this works for me on linux (SuSE 7.0).

regards
robert gravsjo

-- 
  Robert Gravsjö      robert.gravsjo@nsgroup.net 
  System developer    Cell: +46 (0)708 72 00 46
                      Work: +46 (0)480 42 46 16
  NS Group            www.nsgroup.net



view thread (3+ messages)  latest in thread

Message-ID: <95eohe$1f14$1@news.tht.net>
Permalink:  ../95eohe$1f14$1@news.tht.net/
Also on:    postgresql.org/message-id/95eohe$1f14$1@news.tht.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: robert.gravsjo@nsgroup.net
  Subject: Re: Consulta about BACKUP DB
  In-Reply-To: <95eohe$1f14$1@news.tht.net>
  References: <Pine.LNX.4.21.0102021023230.20043-100000@ideay.net.ni> <95eohe$1f14$1@news.tht.net>

* 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