<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Robert Haas: backups</title><description>Sr. Staff Software Engineer @ Databricks, PostgreSQL Developer and Committer</description><link>https://rhaas.dev/</link><item><title>Why pg_dump Is Amazing</title><link>https://rhaas.dev/blog/2024/11/why-pgdump-is-amazing/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-7698801424465970248</guid><description>&lt;p&gt;I wrote a blog post a couple of weeks ago entitled &lt;a href=&quot;/blog/2024/10/is-pgdump-backup-tool/&quot;&gt;Is pg_dump a Backup Tool?&lt;/a&gt;. In that post, I argued in the affirmative, but also said that it’s probably shouldn’t be your primary backup mechanism. For that, you probably shouldn’t directly use anything that is included in PostgreSQL itself, but rather a well-maintained third-party backup tool such as &lt;a href=&quot;https://pgbarman.org/&quot;&gt;barman&lt;/a&gt; or &lt;a href=&quot;https://pgbackrest.org/&quot;&gt;pgbackrest&lt;/a&gt;. But today, I want to talk a little more about why I believe that &lt;a href=&quot;https://www.postgresql.org/docs/current/app-pgdump.html&quot;&gt;&lt;code&gt;pg_dump&lt;/code&gt;&lt;/a&gt; is both amazingly useful for solving all kinds of PostgreSQL-related problems and also just a great piece of technology.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2024/11/why-pgdump-is-amazing/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 01 Nov 2024 15:56:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>Is pg_dump a Backup Tool?</title><link>https://rhaas.dev/blog/2024/10/is-pgdump-backup-tool/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5811426174517299194</guid><description>&lt;p&gt;Recently, I’ve been hearing a lot of experienced PostgreSQL users reiterate this line: “&lt;code&gt;pg_dump&lt;/code&gt; is not a backup tool.” In fact, the &lt;a href=&quot;https://git.postgresql.org/pg/commitdiff/4f29394ea941f688fd4faf7260d2c198931ca797&quot;&gt;documentation has recently been updated&lt;/a&gt; to avoid saying that it is a backup tool, to widespread relief. Experienced PostgreSQL users and developers have been publicly called out for having the temerity to assert that &lt;a href=&quot;https://www.postgresql.org/docs/current/app-pgdump.html&quot;&gt;&lt;code&gt;pg_dump&lt;/code&gt;&lt;/a&gt; is, in fact, a backup tool. I find this narrative deeply frustrating, for two reasons.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2024/10/is-pgdump-backup-tool/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 15 Oct 2024 20:03:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>Incremental Backups: Evergreen and Other Use Cases</title><link>https://rhaas.dev/blog/2024/01/incremental-backups-evergreen-and-other/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5378272801620320630</guid><description>&lt;p&gt;As of this writing, I know of three ways to make use of the incremental backup feature that I committed near the end of last month. I’ll be interested to see how people deploy in practice. The first idea is to replace some of the full backups you’re currently doing with incremental backups, saving backup time and network transfer. The second idea is to do just as many full backups as you do now, but add incremental backups between them, so that if you need to do PITR, you can use &lt;code&gt;pg_combinebackup&lt;/code&gt; to reach the latest incremental backup before the point to which you want to recover, reducing the amount of WAL that you need to replay, and probably speeding up the process quite a bit. The third idea is to give up on taking full backups altogether and only ever take incremental backups.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2024/01/incremental-backups-evergreen-and-other/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 09 Jan 2024 16:28:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>Incremental Backup: What To Copy?</title><link>https://rhaas.dev/blog/2024/01/incremental-backup-what-to-copy/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-340895667383153200</guid><description>&lt;p&gt;Five days before Christmas I committed my patch to add incremental backup to PostgreSQL. Actually, I’ve been committing preparatory patches for some months now, but December 20 saw the two main patches land. Since then, there’s been a bunch of bug-fix commits, and there are still a few pending items that need to be addressed, but the core of the feature is now committed. If you want a quick overview of the feature, &lt;a href=&quot;https://pganalyze.com/blog/5mins-postgres-17-incremental-backups&quot;&gt;Lukas Fittl has a great video about that&lt;/a&gt;. Here, I’d like to talk about the architecture of the feature itself in a little more detail, and specifically with how we decide which data to copy.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2024/01/incremental-backup-what-to-copy/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 03 Jan 2024 17:28:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>Do I Really Need That backup_label File?</title><link>https://rhaas.dev/blog/2023/05/do-i-really-need-that-backuplabel-file/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5746993647713296017</guid><description>&lt;p&gt;I’m sure you already know what I’m going to tell you: “&lt;em&gt;Of course&lt;/em&gt; you need that &lt;code&gt;backup_label&lt;/code&gt; file. How could you even &lt;em&gt;think&lt;/em&gt; that you don’t need that &lt;code&gt;backup_label&lt;/code&gt; file?” Well, you’re right. That is what I’m going to say. But do you know &lt;em&gt;why&lt;/em&gt; you need that &lt;code&gt;backup_label&lt;/code&gt; file? If you were to remove that &lt;code&gt;backup_label&lt;/code&gt; file (or fail to create in the first place, in cases where that is your responsibility), what exactly is the bad thing that would happen to you?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2023/05/do-i-really-need-that-backuplabel-file/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 25 May 2023 19:46:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>pg_basebackup could not set compression worker count - unsupported parameter</title><link>https://rhaas.dev/blog/2022/11/pgbasebackup-could-not-set-compression/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-1603152622757628317</guid><description>&lt;p&gt;&lt;a href=&quot;https://www.postgresql.org/about/news/postgresql-15-released-2526/&quot;&gt;PostgreSQL 15&lt;/a&gt; hasn’t been released for very long, but some people have already been confused by the following error message:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pg_basebackup: error: could not initiate base backup: ERROR: could not set compression worker count to 4: Unsupported parameter
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2022/11/pgbasebackup-could-not-set-compression/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 04 Nov 2022 12:31:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>Parallel Server-Side Backup Compression</title><link>https://rhaas.dev/blog/2022/05/parallel-server-side-backup-compression/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-2770519195854285589</guid><description>&lt;p&gt;I decided to do a little more research on the performance of server-side backup compression, which will be a new feature in PostgreSQL 15 unless, for some reason, the changes need to be reverted prior to release time. The network link I used for &lt;a href=&quot;/blog/2022/02/server-side-lz4-backup-compression/&quot;&gt;my previous testing&lt;/a&gt; was, as I mentioned, rather slow, and handicapped by both a VPN link and an SSH tunnel. Furthermore, I was testing using pgbench data, which is extremely compressible. In addition, at the time I did those tests, we had added support for LZ4 compression, but we had not yet added support for Zstandard compression. Now, however, we not only have Zstandard as an option, but it is possible to use the library’s multi-threading capabilities. So, I wanted to find out how things would work out on a faster network link, with a better test data set, and with all the compression algorithms that we now have available.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2022/05/parallel-server-side-backup-compression/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 02 May 2022 18:27:00 GMT</pubDate><category>backups</category><category>postgresql</category></item><item><title>Server-Side LZ4 Backup Compression</title><link>https://rhaas.dev/blog/2022/02/server-side-lz4-backup-compression/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-1252270064819781164</guid><description>&lt;p&gt;I have been working with my colleagues Tushar Ahuja, Jeevan Ladhe, and Dipesh Pandit to make some improvements to pg_basebackup for version 15. A lot of that work has felt a bit like boring but necessary refactoring, and it’s easy to find yourself wondering whether it will really do anybody any good. I was feeling optimistic after today’s commits, so I decide to give it a try.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2022/02/server-side-lz4-backup-compression/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 11 Feb 2022 17:12:00 GMT</pubDate><category>backups</category><category>postgresql</category></item></channel></rss>