BorgBackup vs pgBackRest

A side-by-side comparison of two self-hosted backup & recovery options — licensing, setup difficulty, resource needs, and what each one replaces.

Not the right match-up?
FeatureBorgBackuppgBackRest
CategoryBackup & RecoveryBackup & Recovery
LicenseBSD-3-ClauseMIT
LanguagePythonC
Setup difficultyMediumHard
Min. RAM256 MB256 MB
Deploymentbinary, bare-metaldocker, binary
GitHub stars★ 13,588★ 4,296
First released20152013
ReplacesCarbonite, BackblazeVeeam

Why pick each one

Choose BorgBackup if…

  • Excellent space efficiency
  • Strong security
  • Battle-tested
BorgBackup details

Choose pgBackRest if…

  • Released under the MIT license
  • First-class Docker support for quick deployment
  • Active community (4.3k GitHub stars)
  • Written in C
pgBackRest details

Frequently asked questions

Is BorgBackup or pgBackRest better?

BorgBackup is the stronger all-round pick: it has both the larger community and the simpler medium setup. Consider pgBackRest if its specific feature set fits your needs better.

Are BorgBackup and pgBackRest free and open-source?

Yes. BorgBackup is licensed under BSD-3-Clause and pgBackRest under MIT. Both can be self-hosted at no software cost.

Can I run BorgBackup and pgBackRest with Docker?

BorgBackup: check the project docs for container support. pgBackRest: yes.

Related comparisons