Re: PITR with rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx]
On Behalf Of Tom Lane
Sent: Monday, August 06, 2007 8:54 PM
To: David.Bear@xxxxxxx
Cc: pgsql-admin@xxxxxxxxxxxxxx
Subject: Re:  PITR with rsync 

David Bear <David.Bear@xxxxxxx> 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


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux