pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: NUWAN LIYANAGE <alnuwan@yahoo.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: backup including symbolic links?
Date: Sat, 26 Jan 2008 13:06:18 -0800 (PST)
Message-ID: <447214.98499.qm@web56414.mail.re3.yahoo.com> (raw)
In-Reply-To: <dcc563d10801251822r229357b0s795610631d6bab02@mail.gmail.com>

Yes, I was thinking of doing a pg_dumpall, but my only worry was that the singl file is going to be pretty large. I guess I don't have to worry too much about that.
  But my question to you sir is, If I want to create the development db using this pg dump file, how do I actually edit create tablespace statements so they will be created in the directory I want them to be. Or should I even worry about this.. (I want my data directory to be in E: drive including all the tablespaces.) 
  Thank you very much for your reply.
  Nuwan.
  
Scott Marlowe <scott.marlowe@gmail.com> wrote:
  On Jan 25, 2008 1:55 PM, NUWAN LIYANAGE 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.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.

view thread (5+ messages)  latest in thread

Message-ID: <447214.98499.qm@web56414.mail.re3.yahoo.com>
Permalink:  ../447214.98499.qm@web56414.mail.re3.yahoo.com/
Also on:    postgresql.org/message-id/447214.98499.qm@web56414.mail.re3.yahoo.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: alnuwan@yahoo.com, scott.marlowe@gmail.com
  Subject: Re: backup including symbolic links?
  In-Reply-To: <447214.98499.qm@web56414.mail.re3.yahoo.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