Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRKf4-0002cl-Fh for pgsql-general@arkaria.postgresql.org; Tue, 19 Dec 2017 16:22:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRKf4-0006aY-2L for pgsql-general@arkaria.postgresql.org; Tue, 19 Dec 2017 16:22:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRKf3-0006aL-Ns for pgsql-general@lists.postgresql.org; Tue, 19 Dec 2017 16:22:33 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eRKf1-0007qK-F3 for pgsql-general@lists.postgresql.org; Tue, 19 Dec 2017 16:22:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 09F2B5F795; Tue, 19 Dec 2017 11:22:30 -0500 (EST) Date: Tue, 19 Dec 2017 11:22:30 -0500 From: Stephen Frost To: Rakesh Kumar Cc: Kellner Thiemo , "pgsql-general@lists.postgresql.org" Subject: Re: PostgreSQL suitable? Message-ID: <20171219162230.GK4628@tamriel.snowman.net> References: <20171219154024.GF4628@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MR/zcx/dJ2ieXe1d" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MR/zcx/dJ2ieXe1d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings Rakesh, * Rakesh Kumar (rakeshkumar464@mail.com) wrote: >=20 > > 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. >=20 > PG's incremental backup is essentially WAL logs applied to a point in tim= e. I am talking about true incremental backup where the db backs up only t= he 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. >=20 > I believe there is one tool which looks at mtime/atime of each of the dat= a 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 --MR/zcx/dJ2ieXe1d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaOTzGAAoJEO1sijiDR2RVzLEP/3207MYvHTgEDXIcRtdUH7MG zhkSL923tt6DGT1UBVeLqwjojp8Yz4XrDzubLznLL+zo0eLhE7EDAzyn0LIdCfrM 6cdCR/Yd1NeCPpenshjcb/CgFcb1cUvTy859BdR8CufCcilCnhnL30W428CKOFHD AqYXjkO647OJrFRVF68vBmFkE0iS18Lh6SvlAWG2yN5q7Z+1vCstK35ag3SmLFRb 1985hvbVpCn72yqB/1Ywx4NbUtlaOZ9kXaYcx7GossaZ6Ht2+Ftftif1gsT8qNni Gte0iqspl4PiWBy0H6scBwx1pTTlCo00rJGnR9P8Hr782EhbNzT9/fjzXmtOeyoF iaD+/cpf6ybILR9TLxcMU/AZCZVTszylL2JM1ZwKs8aqXNH79dzWS0QRI1OHUZIr MhBSrkBa2koFfKUcM2cEbPxPcmqnqOJiid+s3HHdmKySaJprBuIn1Cne9v/62w/v apZ42sgey1PKd1f4Hp1vl4qkMdJWEggV+/xbAvm5ehN5e4LVc3KgYAzyEqNLynQc 6P0zXqDpY5p7+s0AYIHth2M+Kd8oo/7F7vY70lJKiyevZc2WrkIE5yPIEY13eEpz VZC+BcS/k4NBL5ZUCiVtc4nByYhcMKrN7niZcq3X+dHzTAhpP/0TuyJurGEjujv/ JV5BW7QRQh4qiWtvu+hT =XugY -----END PGP SIGNATURE----- --MR/zcx/dJ2ieXe1d--