← All projects
Project record01 mention
Originally shared on Hacker News

pg-restic

pg-restic is a small Docker container that backs up Postgres databases to S3, B2, or any S3-compatible storage using restic. It runs pg_dumpall on a cron schedule and streams the dump directly into a restic repository so nothing touches local disk. It produces encrypted, deduplicated snapshots with retention policies and daily pruning, and no snapshot is saved if a dump fails. It ships pg_dumpall 18, supporting Postgres versions from 9.2 to 18.

Last shared
01 / The problem

What it addresses

Existing Postgres backup Docker images shipped an older pg_dump that couldn't back up newer Postgres versions.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. pg-restic

    pg-restic is a small Docker container that backs up Postgres databases to S3, B2, or any S3-compatible storage using restic. It runs pg_dumpall on a cron schedule and streams the dump directly into a restic repository so nothing touches local disk. It produces encrypted, deduplicated snapshots with retention policies and daily pruning, and no snapshot is saved if a dump fails. It ships pg_dumpall 18, supporting Postgres versions from 9.2 to 18.

    Problem: Existing Postgres backup Docker images shipped an older pg_dump that couldn't back up newer Postgres versions.

    Posted by @sriramiyer · Original comment ↗

    “pg-restic – Postgres backups to S3/B2 (or any S3-compatible storage) using restic, in one small Docker container.”