From: Stephen Frost <sfrost@snowman.net>
To: Rakesh Kumar <rakeshkumar464@mail.com>
Cc: Kellner Thiemo <thiemo.kellner@usb.ch>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PostgreSQL suitable?
Date: Tue, 19 Dec 2017 11:22:30 -0500
Message-ID: <20171219162230.GK4628@tamriel.snowman.net> (raw)
In-Reply-To: <trinity-acba7d1e-51f3-4465-a57c-8a65e523bece-1513699967925@3c-app-mailcom-lxa07>
References: <edbea5c041f24e2582236fe0c579dfd4@usb.ch>
<trinity-c0bd9b9d-da5d-4bd3-b69f-ed723eafacaa-1513693207056@3c-app-mailcom-lxa04>
<20171219154024.GF4628@tamriel.snowman.net>
<trinity-acba7d1e-51f3-4465-a57c-8a65e523bece-1513699967925@3c-app-mailcom-lxa07>
Greetings Rakesh,
* Rakesh Kumar (rakeshkumar464@mail.com) wrote:
>
> > There are multiple solutions to doing incremental backups with
> > PostgreSQL, so I'm not sure why you're saying that they don't exist,
> > because that's really not accurate.
>
> PG's incremental backup is essentially WAL logs applied to a point in time. I am talking about true incremental backup where the db backs up only the changed blocks after the last full backup. In a DW system where most of the time it is append only, it makes a huge difference in backup time.
>
> I believe there is one tool which looks at mtime/atime of each of the data file and takes the decision to back it up or lot. Not sure how robust it is.
Yes, there are multiple such solutions including pgBackRest and barman,
both of which are robust, well supported projects that provide exactly
the incremental backup capability you're asking about. I can't speak
for barman, but I know that there are many people using pgBackRest
to do incremental backups, some on very large PG databases.
I will point out that supporting incremental backups is tricky to do
correctly, which is why using an existing project that's had years to
work on getting it right is really the best approach. I wouldn't
recommend trying to roll your own.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sfrost@snowman.net, rakeshkumar464@mail.com, thiemo.kellner@usb.ch
Subject: Re: PostgreSQL suitable?
In-Reply-To: <20171219162230.GK4628@tamriel.snowman.net>
References: <edbea5c041f24e2582236fe0c579dfd4@usb.ch> <trinity-c0bd9b9d-da5d-4bd3-b69f-ed723eafacaa-1513693207056@3c-app-mailcom-lxa04> <20171219154024.GF4628@tamriel.snowman.net> <trinity-acba7d1e-51f3-4465-a57c-8a65e523bece-1513699967925@3c-app-mailcom-lxa07> <20171219162230.GK4628@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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