Re: PITR with rsync - Mailing list pgsql-admin

From Srinivas Kotapally
Subject Re: PITR with rsync
Date
Msg-id 003501c7d89a$adfe5d00$3221a8c0@srinilaptop
Whole thread Raw
In response to Re: PITR with rsync  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Would a simple diff between 2 pg_dumps work if only data is being added in the
database (i.e. no alters or tables are added)?  So say I do a pg_dump once a day
and one every 3 hrs there after and in the script I do a diff and store as a
PITR dump.  Will that work, or is it too simplistic?

-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]
On Behalf Of Tom Lane
Sent: Monday, August 06, 2007 8:54 PM
To: David.Bear@asu.edu
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] PITR with rsync

David Bear <David.Bear@asu.edu> writes:
> On Mon, Aug 06, 2007 at 08:27:13PM -0400, Tom Lane wrote:
>> I suppose you could, but what's the point?  Copying a single file
>> that doesn't currently exist on the destination plays to none of
>> rsync's strengths.

> well, I was using rysnc so I could copy to a different computer over
> ssh, not using the rsync protocol to catch diffs. I don't have a
> remote file system mounted so I can do just a cp.

If you are going over an ssh connection then scp seems like the appropriate
tool.  Yeah, rsync would work, but it's just a useless extra layer of
software...

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: PITR with rsync
Next
From: "Jayakumar_Mukundaraju"
Date:
Subject: Re: Backup Scheduler...