Re: Backup? - Mailing list pgsql-general

From Vivek Khera
Subject Re: Backup?
Date
Msg-id x74qzsi8lj.fsf@yertle.int.kciLink.com
Whole thread Raw
In response to Backup?  (Bjørn T Johansen <btj@havleik.no>)
List pgsql-general
>>>>> "BTJ" == Bjørn T Johansen <Bj> writes:

BTJ> Should one use pg_dumpall to backup the database or is it more

yes, or pg_dump specific databases.

BTJ> practical to just copy the data directory?

this would do you no good, since the files are not necessarily in a
consistent state when you copy many of them.  ie, the copy is
non-atomic, and there is no guarantee that all data is flushed to
disk.

i don't even do a file system dump of my PG data partition because of
this.


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

pgsql-general by date:

Previous
From: "Edwin Quijada"
Date:
Subject: Re: Activate Index
Next
From: Doug McNaught
Date:
Subject: Re: Backup?