pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
backup file system
7+ messages / 6 participants
[nested] [flat]

* backup file system
@ 2001-10-30 23:27 Leong, Fushan <fushan.leong@SonoSite.com>
  2001-10-31 00:05 ` Re: backup file system Dan Langille <dan@langille.org>
  2001-10-31 13:41 ` Re: backup file system Francisco Solari <fsolari@prosalud.com.ar>
  0 siblings, 2 replies; 7+ messages in thread

From: Leong, Fushan @ 2001-10-30 23:27 UTC (permalink / raw)
  To: pgsql-admin

Hi :

I am very new in postgres and hope someone can give me some suggestions

I am working on a shell script to backup my postgres database.  Compared
with pg_dump and pg_dumpall, I would
like to backup the file system instead of dump the database  because I can
shutdown the database server in 
midnight for a few hours.  I also can sure I will have a stable backup. ( No
user is doing anything at the same time )

I search internet but did not find anyone mention this method.  Did I miss
anything?  I plan to backup all
files under data directory.  Is that enough?

thanks
Fushan
DBA



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

* Re: backup file system
  2001-10-30 23:27 backup file system Leong, Fushan <fushan.leong@SonoSite.com>
@ 2001-10-31 00:05 ` Dan Langille <dan@langille.org>
  2001-11-01 00:26   ` Re: backup file system Jeremy Buchmann <jeremy@wellsgaming.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Dan Langille @ 2001-10-31 00:05 UTC (permalink / raw)
  To: Leong, Fushan <fushan.leong@SonoSite.com>; +Cc: pgsql-admin

On 30 Oct 2001 at 15:27, Leong, Fushan wrote:

> I am working on a shell script to backup my postgres database.  Compared
> with pg_dump and pg_dumpall, I would like to backup the file system
> instead of dump the database  because I can shutdown the database server
> in midnight for a few hours.  I also can sure I will have a stable backup.
> ( No user is doing anything at the same time )

Personally, I'd rather use pg_dump.  That way I'm guaranteed to have a 
file which will work with a future version of PostgreSQL.  

Why do you want to back up the file system instead of using pg_dump?

SIDE ISSUE: A possible benefit of using pg_dump instead of backing up the
file system:  all parts of the database are excerised/explored; any bad parts of the file system will 
be identified then.
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples




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

* Re: backup file system
  2001-10-30 23:27 backup file system Leong, Fushan <fushan.leong@SonoSite.com>
  2001-10-31 00:05 ` Re: backup file system Dan Langille <dan@langille.org>
@ 2001-11-01 00:26   ` Jeremy Buchmann <jeremy@wellsgaming.com>
  2001-11-01 04:28     ` Re: backup file system Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 7+ messages in thread

From: Jeremy Buchmann @ 2001-11-01 00:26 UTC (permalink / raw)
  To: dan@langille.org; +Cc: Leong, Fushan <fushan.leong@SonoSite.com>; pgsql-admin

Or, you can backup both...

We backup the filesystem every night with plain old dump and then run
pg_dump and copy that file onto the backup, too.  Makes for some nice
redundancy.

--Jeremy

On Tuesday, October 30, 2001, at 04:05 PM, Dan Langille wrote:

> On 30 Oct 2001 at 15:27, Leong, Fushan wrote:
>
>> I am working on a shell script to backup my postgres database.  
>> Compared
>> with pg_dump and pg_dumpall, I would like to backup the file system
>> instead of dump the database  because I can shutdown the database 
>> server
>> in midnight for a few hours.  I also can sure I will have a stable 
>> backup.
>> ( No user is doing anything at the same time )
>
> Personally, I'd rather use pg_dump.  That way I'm guaranteed to have a
> file which will work with a future version of PostgreSQL.
>
> Why do you want to back up the file system instead of using pg_dump?
>
> SIDE ISSUE: A possible benefit of using pg_dump instead of backing up 
> the
> file system:  all parts of the database are excerised/explored; any bad 
> parts of the file system will
> be identified then.
> --
> Dan Langille
> The FreeBSD Diary - http://freebsddiary.org/ - practical examples
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>




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

* Re: backup file system
  2001-10-30 23:27 backup file system Leong, Fushan <fushan.leong@SonoSite.com>
  2001-10-31 00:05 ` Re: backup file system Dan Langille <dan@langille.org>
  2001-11-01 00:26   ` Re: backup file system Jeremy Buchmann <jeremy@wellsgaming.com>
@ 2001-11-01 04:28     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2001-11-01 04:28 UTC (permalink / raw)
  To: Jeremy Buchmann <jeremy@wellsgaming.com>; +Cc: dan@langille.org, "Leong, Fushan" <fushan.leong@SonoSite.com>; pgsql-admin

>> Why do you want to back up the file system instead of using pg_dump?

There is some discussion of this issue in the PG documentation;
see 
http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/backup-file.html

			regards, tom lane



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

* Re: backup file system
  2001-10-30 23:27 backup file system Leong, Fushan <fushan.leong@SonoSite.com>
@ 2001-10-31 13:41 ` Francisco Solari <fsolari@prosalud.com.ar>
  2001-10-31 14:39   ` Re: backup file system Egon Reetz <reetz@usco.de>
  1 sibling, 1 reply; 7+ messages in thread

From: Francisco Solari @ 2001-10-31 13:41 UTC (permalink / raw)
  To: Leong, Fushan <fushan.leong@SonoSite.com>; +Cc: pgsql-admin

I had the same problem, but backing up the filesystem isn't the solution. I did
it and when I tried to restore the database was impossible. If anyone knows how
to solve this problem please let me know

"Leong, Fushan" wrote:

> Hi :
>
> I am very new in postgres and hope someone can give me some suggestions
>
> I am working on a shell script to backup my postgres database.  Compared
> with pg_dump and pg_dumpall, I would
> like to backup the file system instead of dump the database  because I can
> shutdown the database server in
> midnight for a few hours.  I also can sure I will have a stable backup. ( No
> user is doing anything at the same time )
>
> I search internet but did not find anyone mention this method.  Did I miss
> anything?  I plan to backup all
> files under data directory.  Is that enough?
>
> thanks
> Fushan
> DBA
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

Attachments:

fsolari.vcf (text/x-vcard, 236B) download begin:vcard n:Solari;Francisco J. tel;work:(011) 4378-4257 x-mozilla-html:FALSE org:Provincia Salud S.A.;Sistemas adr:;;;;;; version:2.1 email;internet:fsolari@prosalud.com.ar title:Analista de Sistemas fn:Francisco J. Solari end:vcard
^ permalink raw reply [nested|flat] 7+ messages in thread

* Re: backup file system
  2001-10-30 23:27 backup file system Leong, Fushan <fushan.leong@SonoSite.com>
  2001-10-31 13:41 ` Re: backup file system Francisco Solari <fsolari@prosalud.com.ar>
@ 2001-10-31 14:39   ` Egon Reetz <reetz@usco.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Egon Reetz @ 2001-10-31 14:39 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

I don't understand why it's not possible to backup all the database files while the
db is down. I'm working for years with Oracle and doing a tape backup from all
necessary files is one way to restore the database.

Egon


Francisco Solari wrote:

> I had the same problem, but backing up the filesystem isn't the solution. I did
> it and when I tried to restore the database was impossible. If anyone knows how
> to solve this problem please let me know
>
> "Leong, Fushan" wrote:
>
> > Hi :
> >
> > I am very new in postgres and hope someone can give me some suggestions
> >
> > I am working on a shell script to backup my postgres database.  Compared
> > with pg_dump and pg_dumpall, I would
> > like to backup the file system instead of dump the database  because I can
> > shutdown the database server in
> > midnight for a few hours.  I also can sure I will have a stable backup. ( No
> > user is doing anything at the same time )
> >
> > I search internet but did not find anyone mention this method.  Did I miss
> > anything?  I plan to backup all
> > files under data directory.  Is that enough?
> >
> > thanks
> > Fushan
> > DBA
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
>
>   ------------------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




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

* Re: backup file system
@ 2001-10-31 21:52 Leong, Fushan <fushan.leong@SonoSite.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Leong, Fushan @ 2001-10-31 21:52 UTC (permalink / raw)
  To: pgsql-admin

Francisco :

Would you tell me what problem did you face when you try to restore the
database from backup filesystem?

Fushan

-----Original Message-----
From: Francisco Solari [mailto:fsolari@prosalud.com.ar]
Sent: Wednesday, October 31, 2001 5:41 AM
To: Leong, Fushan
Cc: 'pgsql-admin@postgresql.org'
Subject: Re: [ADMIN] backup file system


I had the same problem, but backing up the filesystem isn't the solution. I
did
it and when I tried to restore the database was impossible. If anyone knows
how
to solve this problem please let me know

"Leong, Fushan" wrote:

> Hi :
>
> I am very new in postgres and hope someone can give me some suggestions
>
> I am working on a shell script to backup my postgres database.  Compared
> with pg_dump and pg_dumpall, I would
> like to backup the file system instead of dump the database  because I can
> shutdown the database server in
> midnight for a few hours.  I also can sure I will have a stable backup. (
No
> user is doing anything at the same time )
>
> I search internet but did not find anyone mention this method.  Did I miss
> anything?  I plan to backup all
> files under data directory.  Is that enough?
>
> thanks
> Fushan
> DBA
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html



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


end of thread, other threads:[~2001-11-01 04:28 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-30 23:27 backup file system Leong, Fushan <fushan.leong@SonoSite.com>
2001-10-31 00:05 ` Dan Langille <dan@langille.org>
2001-11-01 00:26   ` Jeremy Buchmann <jeremy@wellsgaming.com>
2001-11-01 04:28     ` Tom Lane <tgl@sss.pgh.pa.us>
2001-10-31 13:41 ` Francisco Solari <fsolari@prosalud.com.ar>
2001-10-31 14:39   ` Egon Reetz <reetz@usco.de>
2001-10-31 21:52 Re: backup file system Leong, Fushan <fushan.leong@SonoSite.com>

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