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 1jizu8-0007Ou-0w for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 12:32:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jizu6-00042t-3N for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 12:32:26 +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 1jizu5-00042m-Ri for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 12:32:25 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jizu3-00010S-D6 for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 12:32:24 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8DF275F7A5; Wed, 10 Jun 2020 08:32:22 -0400 (EDT) Date: Wed, 10 Jun 2020 08:32:22 -0400 From: Stephen Frost To: Peter Cc: Adrian Klaver , pgsql-general@lists.postgresql.org Subject: Re: Something else about Redo Logs disappearing Message-ID: <20200610123222.GV6680@tamriel.snowman.net> References: <20200609000253.GA21670@gate.oper.dinoex.org> <20200609023326.GA61487@gate.oper.dinoex.org> <20200609175521.GA96231@gate.oper.dinoex.org> <20200609194248.GL6680@tamriel.snowman.net> <20200610074608.GA29949@gate.oper.dinoex.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pLlCf/bEWtYPubJE" Content-Disposition: inline In-Reply-To: <20200610074608.GA29949@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 --pLlCf/bEWtYPubJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Peter (pmc@citylink.dinoex.sub.org) wrote: > On Tue, Jun 09, 2020 at 03:42:48PM -0400, Stephen Frost wrote: > ! > 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. > !=20 > ! 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. >=20 > What repo?? I seem to have missed that at first glance. Yes, pgbackrest has a repo, like most other tools (though they call them different things... pg_basebackup has one though it's not really formal). > Are You indeed suggesting that one should have their data within > the database, where it is worked with, and then use Your tool > to copy it to some "repo" disk playground whatever area, and then > use their regular backup system to COPY IT AGAIN into their > backup/archiving system? Are You kiddin'? No, I'm not kidding and yes, that's what I'm suggesting. You need a consistent backup of your database that includes all the needed WAL to perform a restore. This is only one option though, there are others- you can also use pgbackrest to push your backups to s3 (or any s3-compatible data storage system, which includes some backup systems), and we'll be adding support for Azure very shortly, and have plans to add GCS too in the future, along with others probably. > Is this becoming a madhouse, or are You going to refund them that? I concur that this is becoming a madhouse, and is pushing past the limit for what I'm willing to deal with when trying to assist someone. > Let me tell You something: the people I used to work for, sometimes > had a problem. They had some amount of data that was created during > the day, and they had the night to write that data away to backup. > That would usually mean, four or eight of the big tapes, streaming in > parallel, fibers saturated, all night thru. And the problem usually was > that they would need a longer night. At least the math had to be done > properly. Indeed, parallel backup is important, which is why pgbackrest supports it, along with compression and encryption, all in-stream between the database server and the repo, along with calculating a SHA to be stored of every single file seen, allowing you to validate that the files haven't changed since the backup was done when restoring. > Maybe You never encountered these, but there are surroundings where > there is no spare room for nonsense. Maybe that'S why these people > preferred to use oracle. I've both dealt with keeping tape drives fully loaded to avoid breaking the tape by studdering it (and writing dedicated C code to deal with exactly that), and dealt with backing up and restoring Oracle, including with various "enterprise" backup technologies (with varying levels of success...). None of what is being brought up here is new, novel, or even particularly interesting. Thanks, Stephen --pLlCf/bEWtYPubJE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJe4NLWAAoJEO1sijiDR2RVLekQAKG7n/Ontb4t8g9X6I52/nSR aNy4ll/78ojv/hiu2tY1vHomGTQ4HQRupNOJ0o8l9XdQAbCcfTr2a2cCgs/jBn3e hFlAbEj/N5pCbHtvqqrS0O2HBbsg81gwlWPXQfYJ4iQ3zOgmDOz3A5dkV8pSpY6e 8SrW2kCKA+k5Fxc/Q8wgOK4LXp4s0/hKMl1eEyvKTcf+O1iLS+6r1OekmVgJ0vwA 62jmKQLAEX3ALPax1q0XbpEtkDgLurwo8R+McZbRkvdbNsreLTS6d7EgA1tYlASE rj/mrVdJ4UNdEiZ/3KeALIF907CzyGnAkc1V0i4itclTkMJOUvyzfofS446OAeik MmhHvykmJ1o3oSsbgN+GmJ+Rz0GMzP9j0Dp1xWXNlJ2pIzYTVoZSQ7sF12pP4YnS vHNhHH7u75vtCAoe1Qc8DnvGUPtF7PxX167hyley//l0Za7bY+9HL1bgHCB2sTcA j/ks6tfsP3PdzxfIHsk0Thqf8NEewoqMEFNMTB2b5lpCOJ7PdzmMNG1mozvbLpUh Sx7DbvTz2LPyCJSEVDeqcouNekywp1qnh3np/HgWRpqIA6myd8I4ouuRMjrdASWl NpJlisqfzeZgtx0w0kNgNES0IFnh50zenkXIYBxlCuJTvSodzvKN5fp3mkL94szg lUy96ZEPTeuWQC4X3Eaa =NmZU -----END PGP SIGNATURE----- --pLlCf/bEWtYPubJE--