Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jik98-0001l1-Km for pgsql-general@arkaria.postgresql.org; Tue, 09 Jun 2020 19:42:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jik96-0005rw-KY for pgsql-general@arkaria.postgresql.org; Tue, 09 Jun 2020 19:42:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jik96-0005rp-Cp for pgsql-general@lists.postgresql.org; Tue, 09 Jun 2020 19:42:52 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jik93-0000k6-Qc for pgsql-general@lists.postgresql.org; Tue, 09 Jun 2020 19:42:51 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id C7DB75F7A5; Tue, 9 Jun 2020 15:42:48 -0400 (EDT) Date: Tue, 9 Jun 2020 15:42:48 -0400 From: Stephen Frost To: Peter Cc: Adrian Klaver , pgsql-general@lists.postgresql.org Subject: Re: Something else about Redo Logs disappearing Message-ID: <20200609194248.GL6680@tamriel.snowman.net> References: <20200609000253.GA21670@gate.oper.dinoex.org> <20200609023326.GA61487@gate.oper.dinoex.org> <20200609175521.GA96231@gate.oper.dinoex.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="axy+G8Ep0JfHiOnj" Content-Disposition: inline In-Reply-To: <20200609175521.GA96231@gate.oper.dinoex.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --axy+G8Ep0JfHiOnj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Peter (pmc@citylink.dinoex.sub.org) wrote: > This professional backup solution also offers support for postgres. > Sadly, it only covers postgres up to Rel.9, and that piece of software > wasn't touched in the last 6 or 7 years. Then it certainly doesn't work with the changes in v12, and probably has other issues, as you allude to. > Actually, I am getting very tired of reading that something which can > easily be done within 20 lines of shell scripting, would need special This is just simply false- you can't do it properly in 20 lines of shell scripting. Sure, you can write something that has probably next to no error checking, uses the deprecated API that'll cause your systems to fail to start if you ever happen to have a reboot during a backup, and has no way to provide verification that the backup was at all successful after the fact, but that's not what I'd consider a proper solution- instead it's one that'll end up causing you a lot of pain down the road. Even the shell-script based solution (which I've never used and personally wouldn't really recommend, but to each their own) called 'pitery' (available here: https://github.com/dalibo/pitrery) is thousands of lines of code. > Does nobody know anymore how to do proper systems management > scripting? Using just the basic system tools which have proven to > work for more than 50 years now!? I've not met anything I'd call 'proper systems management scripting' that's 20 lines of code, shell script or not. > ! Not sure about pg_probackup. >=20 > Okay, I had a -very short- look into these. Just scanning the > introductory pages. >=20 > The only really interesting thing there is the pg_probackup. These > folks seem to have found a way to do row-level incremental backups. pg_probackup doesn't do row-level incremental backups, unless I've missed some pretty serious change in its development, but it does provide page-level, with, as I recall, an extension that didn't get good reception when it was posted and discussed on these mailing lists by other PG hackers. I don't know if those concerns about it have been addressed or not, you might ask the pg_probackup folks if you're considering it as a solution. > This is fine as long as you do not run any computers, and the only > application you are using is Postgres. > But, if you have other applications as well, or have computers, then > you will need a different backup solution, something that will cover > your site-wide backup demands, in a consistent fashion (think > something in the style of ADSM, or nowadays called Spectrum Protect). >=20 > And then 90% of the things offered here become superfluous, because > they are already handled site-wide. And then you will have to > consider integration of both pieces - and that will most likely be > more work and more error-prone than just writing a few adapters in > shell. pgbackrest's repo can be safely backed up using the simple file-based backup utilities that you're referring to here. I suspect some of the other solution's backups also could be, but you'd probably want to make sure. PG generally isn't something that can be backed up using the simple file based backup solutions, as you might appreciate from just considering the number of tools written to specifically deal with the complexity of backing up an online PG cluster. Thanks, Stephen --axy+G8Ep0JfHiOnj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJe3+Y4AAoJEO1sijiDR2RVdcsP/38a8BqN6jF6wih5/nDAgFHK nLxZNreYjiplNPt4ROUeQAoqtP6ve9CPX9PTOXYykhGsoZPtLzCzhYoly1uY7jlC WvdBPivPi4QN4hLw+puianUQUqGKwHPcx6xg1cXZKR79zYuhkoofPEPcxk2faV2n 7W5b2p4prdmUwxusaHuya7kmpNiLCZPwyisDRdD4xksZgacJUkwU3FKGMWCDRjV0 +ntn3HhEGPOG4LHDWmRlLoOOekCT2PEtMxSmYNtJSt48OXAx4HF+X3dx3eHTKAYu CQi1w/2yj/Ax6Nq+dsBg4yAarQPS6LRWw00n8PYVxR5FJ3u9Uk/1jL7QLd0zc/3a vdExFJpFjgpZO3JSwY9orFYB8z0x+n93SeuwLVdPh907pk4sQdT+FbGIASZMHdIK U+ktlSlu6tArbNzFpzOMVEl7iQZbu91CLrderVY8ZuquBVf3XAbItDMfTC2iEmEb 0CKfcnrUueeHU/WT/jBt/VBGhIo3SkQPSl+dF3V+Ckbqr2i6u+GTkr9C3VYbO3Iz eYYLpvdVdJUcAzZ3WHYtmcIgENv06joLznfyI5L6yzkcTh2K/BaT/tTDXu8G0mFL sEBe6i9HHAxYpLGqDpCpkhhsjPFQ7aInsvlNvpsNOewyiQCHno0nirFTz6KeocWs 4WjXhePmoNl6dX1HqZ4o =w9bd -----END PGP SIGNATURE----- --axy+G8Ep0JfHiOnj--