Skip site navigation (1) Skip section navigation (2)

Re: backup including symbolic links?

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "NUWAN LIYANAGE" <alnuwan(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: backup including symbolic links?
Date: 2008-01-26 02:22:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Jan 25, 2008 1:55 PM, NUWAN LIYANAGE <alnuwan(at)yahoo(dot)com> wrote:
> Hello,
>  I have a 450gb production database, and was trying to create a development
> database using a bkp.
>  I was following the instructions on postgres documentation, and came across
> the paragraph that says...
>  " If you are using tablespaces that do not reside underneath this (data)
> directory, be careful to include them as well (and be sure that your backup
> dump archives symbolic links as links, otherwise the restore will mess up
> your tablespaces)."
>  I have a seperate pg_tablespaces folder under E:\ drive since there wasn't
> enough space in my C:\ drive to put them.
>  My db is 8.2 and is running on windows 2003.
>  Can anyone tell me how to backup my database (including the symbolic links
> as links).

A standard pg_dumpall --globals will dump the create tablespace
statement, which you can edit as needed for your new machine.  A plain
pg_dump of the database will dump out the tables with tablespace
statements.  A pg_dumpall of the whole database cluster can also be
used to do this.

In response to


pgsql-admin by date

Next:From: Tom LaneDate: 2008-01-26 18:10:49
Subject: Re: Recovering a database in danger of transaction wrap-around
Previous:From: Steven RosensteinDate: 2008-01-26 01:02:02
Subject: Re: Recovering a database in danger of transaction wrap-around

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group