pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Consulta about BACKUP DB
3+ messages / 3 participants
[nested] [flat]

* Consulta about BACKUP DB
@ 2001-02-02 16:27 vlal@ideay.net.ni
  2001-02-02 16:50 ` Re: Consulta about BACKUP DB robert.gravsjo@nsgroup.net
  2001-02-02 17:11 ` Re: Consulta about BACKUP DB jcmd@acer.com.mx <jcmd@acer.com.mx>
  0 siblings, 2 replies; 3+ messages in thread

From: vlal@ideay.net.ni @ 2001-02-02 16:27 UTC (permalink / raw)
  To: pgsql-admin

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.


-- 
\/_\_

Saludos, 
"La Vida"




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Consulta about BACKUP DB
  2001-02-02 16:27 Consulta about BACKUP DB vlal@ideay.net.ni
@ 2001-02-02 16:50 ` robert.gravsjo@nsgroup.net
  1 sibling, 0 replies; 3+ messages in thread

From: robert.gravsjo@nsgroup.net @ 2001-02-02 16:50 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Consulta about BACKUP DB
  2001-02-02 16:27 Consulta about BACKUP DB vlal@ideay.net.ni
@ 2001-02-02 17:11 ` jcmd@acer.com.mx <jcmd@acer.com.mx>
  1 sibling, 0 replies; 3+ messages in thread

From: jcmd@acer.com.mx @ 2001-02-02 17:11 UTC (permalink / raw)
  To: vlal@ideay.net.ni; +Cc: pgsql-admin



pg_dump -Dn databasename > mybackupdatabasename.sql

to restore:

create databasename_new
psql -e databasename_new < mybackupdatabasename_new.sql

more information man pg_dump

regards

On Fri, 2 Feb 2001 vlal@ideay.net.ni wrote:

{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.
{
{
{




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-02-02 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02 16:27 Consulta about BACKUP DB vlal@ideay.net.ni
2001-02-02 16:50 ` robert.gravsjo@nsgroup.net
2001-02-02 17:11 ` jcmd@acer.com.mx <jcmd@acer.com.mx>

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