5 comments

  • ninjaoxygen6 hours ago
    We use Barman inside Kubernetes via CloudNativePG&#x27;s plugin, as it is the default backup plugin.<p>Barman has always been solid for backup and restore, however configuring backup in CNPG is a little more interesting - WAL limits need to be set carefully or you just end up filling WAL volumes and the database becoming unavailable.
    • Synthetic73463 hours ago
      Can the plugin do non objectstore backups? E.g. If I don&#x27;t want to use S3 &#x2F; minio &#x2F; whatever blobstore for my homelab
      • mkroman2 hours ago
        The plugin is specifically for handling backups via object storage.<p>CloudNativePG also implements support for volume snapshots: <a href="https:&#x2F;&#x2F;cloudnative-pg.io&#x2F;docs&#x2F;1.29&#x2F;backup#backup-methods" rel="nofollow">https:&#x2F;&#x2F;cloudnative-pg.io&#x2F;docs&#x2F;1.29&#x2F;backup#backup-methods</a>
    • subhobroto6 hours ago
      &gt; We use Barman inside Kubernetes via CloudNativePG&#x27;s plugin, as it is the default backup plugin.<p>right and here&#x27;s why CloudNativePG chose Barman over pgBackRest: <a href="https:&#x2F;&#x2F;github.com&#x2F;cloudnative-pg&#x2F;cloudnative-pg&#x2F;issues&#x2F;3077" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudnative-pg&#x2F;cloudnative-pg&#x2F;issues&#x2F;3077</a><p>&gt; WAL limits need to be set carefully or you just end up filling WAL volumes and the database becoming unavailable.<p>This is true. For anyone getting alarmed that this is due to a bug in PostgreSQL, it&#x27;s not - it&#x27;s PostgreSQL protecting the customer from attempting to write data that it cannot durable commit - &quot;I am going to go unavailable because I don&#x27;t have enough space to save more data&quot;.<p>There are multiple ways to handle this, the easiest, most hands on way is to keep a monitor and alert that watches the WAL size like a hawk and then alerts OPS the moment it breaches a threshold.
      • Tostino5 hours ago
        I thought that link was actually going to have a discussion on why they chose it. No such discussion exists.
        • subhobroto5 hours ago
          The way I read that issue and the linked discussion was, that pgBackRest handles a lot of details itself that&#x27;s otherwise handled by Kubernetes. Hence, a lot of functionality in pgBackRest is not only redundant but incompatible with how Kubernetes CSI could be used to provide incremental and differential backups. Hence, Barman and `barman-cloud` plugins are a better, natural fit for a Kubernetes environment than pgBackRest.
  • levkk6 hours ago
    Last time I checked, Barman didn&#x27;t support backups to S3. That&#x27;s why (for us) pgBackRest was such a big deal: it could offload full and incremental backups to a basically limitless and reliable medium.<p>I think (and I&#x27;m probably wrong now) that Barman only could push backups to another Linux machine (e.g., EC2 box), so you had to worry about your backup system _on top_ of the main DB.<p>So I&#x27;m really hoping someone will pickup maintaining pgBackRest.
    • bakies4 hours ago
      Huh... Opposite experience. Barman cloud (s3 backups) is the only way I&#x27;ve ever used it. I didn&#x27;t realize it wasn&#x27;t the only way. Makes sense it could just use a filesystem.<p><a href="https:&#x2F;&#x2F;docs.pgbarman.org&#x2F;release&#x2F;3.14.1&#x2F;user_guide&#x2F;barman_cloud.html" rel="nofollow">https:&#x2F;&#x2F;docs.pgbarman.org&#x2F;release&#x2F;3.14.1&#x2F;user_guide&#x2F;barman_c...</a>
    • hakube5 hours ago
      They have a plugin that supports backups to cloud storage<p><a href="https:&#x2F;&#x2F;docs.pgbarman.org&#x2F;release&#x2F;3.12.0&#x2F;user_guide&#x2F;barman_cloud.html" rel="nofollow">https:&#x2F;&#x2F;docs.pgbarman.org&#x2F;release&#x2F;3.12.0&#x2F;user_guide&#x2F;barman_c...</a><p>For CNPG: <a href="https:&#x2F;&#x2F;github.com&#x2F;cloudnative-pg&#x2F;plugin-barman-cloud" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudnative-pg&#x2F;plugin-barman-cloud</a>
    • hephaes7us6 hours ago
      Something like Rclone and a cron job, or else s3 mounted via FUSE, could possibly bridge that. Of course then you have to worry about reliability of the bridge...
      • timacles4 hours ago
        Mounting S3 with Fuse is not stable or performant enough at scale for backup storage
        • hephaes7us3 hours ago
          I can understand why it&#x27;d be preferable to avoid such a bridge layer, and indeed I too would rather just have a transparent view of what&#x27;s going on at the protocol level.<p>Stability and performance at scale sound like implementation specific properties though. If you&#x27;ve tried this, I&#x27;d be curious to known about the specific issues you encountered.
      • the_angry_angel5 hours ago
        There’s support via Barman cloud - we use it for azure at work but s3 and others are supported iirc
      • Eikon4 hours ago
        <a href="https:&#x2F;&#x2F;github.com&#x2F;Barre&#x2F;ZeroFS" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Barre&#x2F;ZeroFS</a> Should do a great job at this.
    • somewhatrandom95 hours ago
      There are other ways to mount S3, but you may want to check out Amazon&#x27;s new product, S3 files: <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2026&#x2F;04&#x2F;amazon-s3-files&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2026&#x2F;04&#x2F;amazon-s3...</a><p><a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;s3&#x2F;features&#x2F;files&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;s3&#x2F;features&#x2F;files&#x2F;</a>
  • philippemnoel4 hours ago
    We (ParadeDB) use Barman via CloudNativePG for almost all our deployments. It&#x27;s been solid, although I&#x27;ve had a few complaints about 1) inability to set S3 storage classes, 2) slow upload for very large databases.<p>Nonetheless, very happy to see this project on the front page of HN!
  • subhobroto7 hours ago
    This is a fantastic project that a lot of self-hosters using PostgreSQL use. Specially with pgBackRest archived by the owner on Apr 27, 2026, this is likely <i>the</i> leading option that has been around the block for a while.<p>Anyone here had considered Barman in the past, used it for a while and went to pgBackRest? Are you revisiting that decision now?
    • hans_castorp7 hours ago
      A side note on pgBackRest: PGX created a fork and announced to maintain it under the name pgxbackup:<p><a href="https:&#x2F;&#x2F;thebuild.com&#x2F;blog&#x2F;2026&#x2F;05&#x2F;01&#x2F;pgxbackup-continuity-support-for-pgbackrest&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thebuild.com&#x2F;blog&#x2F;2026&#x2F;05&#x2F;01&#x2F;pgxbackup-continuity-su...</a>
    • zigzag3125 hours ago
      One interesting thing about Barman is that it just uses PG&#x27;s own backup utilities. It doesn&#x27;t implement custom parsers and things like that. So, there&#x27;s less maintenance work needed for Barman when PostgreSQL changes data-file internals. Tradeoff is that there&#x27;s less custom optimization than pgBackRest&#x2F;pg_probackup&#x2F;WAL-G-local.<p>Databasus seems to be taking somewhat similar approach to Barman, but (at this time) does not appear to use pg_receivewal, which makes it less efficient than Barman.<p>For PG v17+, Barman seems to be the most efficient backup solution based on PG native tools, that is able to do low-RPO or even zero-RPO (if configured as a synchronous receiver).
    • tee-es-gee6 hours ago
      It looks like pgBackRest will likely continue, multiple companies are stepping up with sponsorships. Mentioning this just in case anyone is making plans to move away, it&#x27;s probably worth waiting a bit for things to settle.
  • nodesocket5 hours ago
    A shout out to Databasus (<a href="https:&#x2F;&#x2F;databasus.com" rel="nofollow">https:&#x2F;&#x2F;databasus.com</a>). It’s a remarkably simply utility and web interface to schedule PostgreSQL backups. I use it in my homelab and works great.
    • cpursley2 hours ago
      Upvote, this is working well for us.