Re: Incremental backup with RSYNC or something?

From: Alex Thurlow <alex-reports(at)blastro(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Incremental backup with RSYNC or something?
Date: 2011-11-22 22:13:35
Message-ID: 4ECC1E8F.6030302@blastro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/22/2011 3:28 PM, Merlin Moncure wrote:
> On Sun, Nov 13, 2011 at 5:38 AM, Phoenix Kiula<phoenix(dot)kiula(at)gmail(dot)com> wrote:
>> Hi.
>>
>> I currently have a cronjob to do a full pgdump of the database every
>> day. And then gzip it for saving to my backup drive.
>>
>> However, my db is now 60GB in size, so this daily operation is making
>> less and less sense. (Some of you may think this is foolish to begin
>> with).
>>
>> Question: what can I do to rsync only the new additions in every table
>> starting 00:00:01 until 23:59:59 for each day?
>>
>> Searching google leads to complex things like "incremental WAL" and
>> whatnot, or talks of stuff like pgcluster. I'm hoping there's a more
>> straightforward core solution without additional software or PHD
>> degrees.
> My standard advice to this problem is to do a HS/SR setup which solves
> a number of problems simultaneously. It still makes sence to take a
> full snapshot once in a while though -- but you can take it from the
> standby.
>
> merlin
>

How long is this backup taking? I have a ~100GB database that I back up
with pg_dump (which compresses as it dumps if you want it to) and that
only takes 35 minutes. Granted, I have it on some fast SCSI drives in
RAID 1, but even a single SATA drive should still finish in a decent
amount of time.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2011-11-22 22:46:44 Re: pg_standby for postgresql8.2
Previous Message Merlin Moncure 2011-11-22 21:28:03 Re: Incremental backup with RSYNC or something?