Online backup

Started by Paulo Henrique Baptista de Oliveiraover 23 years ago4 messagesgeneral
Jump to latest
#1Paulo Henrique Baptista de Oliveira
baptista@linuxsolutions.com.br

Hi all,
I want to do an online backup.
All that I see in lists are about cp $PGDATA and pg_dump.
What about tables that are being updated at the same time the backup is
running? The data will be consistent?
Thanks, Paulo Henrique

#2Martijn van Oosterhout
kleptog@svana.org
In reply to: Paulo Henrique Baptista de Oliveira (#1)
Re: Online backup

On Wed, Oct 23, 2002 at 12:55:18AM -0200, Paulo Henrique Baptista de Oliveira wrote:

Hi all,
I want to do an online backup.
All that I see in lists are about cp $PGDATA and pg_dump.
What about tables that are being updated at the same time the backup is
running? The data will be consistent?

Don't copy direct, use pg_dump

--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

Show quoted text

There are 10 kinds of people in the world, those that can do binary
arithmetic and those that can't.

#3Paulo Henrique Baptista de Oliveira
baptista@linuxsolutions.com.br
In reply to: Martijn van Oosterhout (#2)
Re: Online backup

Hi Martijn,
pg_dump cares of changes in data while it is dumping?
TIA, Paulo Henrique
Quoting Martijn van Oosterhout (kleptog@svana.org):

Show quoted text

On Wed, Oct 23, 2002 at 12:55:18AM -0200, Paulo Henrique Baptista de Oliveira wrote:

Hi all,
I want to do an online backup.
All that I see in lists are about cp $PGDATA and pg_dump.
What about tables that are being updated at the same time the backup is
running? The data will be consistent?

Don't copy direct, use pg_dump

--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

There are 10 kinds of people in the world, those that can do binary
arithmetic and those that can't.

#4Martijn van Oosterhout
kleptog@svana.org
In reply to: Paulo Henrique Baptista de Oliveira (#3)
Re: Online backup

On Wed, Oct 23, 2002 at 09:10:51AM -0200, Paulo Henrique Baptista de Oliveira wrote:

Hi Martijn,
pg_dump cares of changes in data while it is dumping?
TIA, Paulo Henrique
Quoting Martijn van Oosterhout (kleptog@svana.org):

On Wed, Oct 23, 2002 at 12:55:18AM -0200, Paulo Henrique Baptista de Oliveira wrote:

Hi all,
I want to do an online backup.
All that I see in lists are about cp $PGDATA and pg_dump.
What about tables that are being updated at the same time the backup is
running? The data will be consistent?

Don't copy direct, use pg_dump

Pg_dump will produce a consistant dump. Basically a snapsnot of the database
at the moment you started the dump.
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

Show quoted text

There are 10 kinds of people in the world, those that can do binary
arithmetic and those that can't.