Softwr

Backup · head to head

Borg Backup vs Longhorn

Borg Backup logo

Borg Backup

Backup

Deduplicating archiver with compression and encryption

From
Free
Free plan
Yes
Longhorn logo

Longhorn

Cloud

Open source distributed block storage for Kubernetes, incubating at the CNCF

From
Free
Free plan
Yes

The short version

  • Borg Backup is a deduplicating backup program.
  • Both are free.
  • Only Borg Backup lists content-defined chunking; only Longhorn lists per-volume controllers.
  • Where Borg Backup falls short: linux, macOS and BSD only; Windows is not a supported platform.

How do Borg Backup and Longhorn differ?

Borg Backup and Longhorn differ on pricing model, platforms (Linux, macOS against Linux, Self-hosted) and category (Backup against Cloud). Only the attributes on which Borg Backup and Longhorn actually diverge.

Attributes where Borg Backup and Longhorn differ
AttributeBorg BackupLonghorn
Pricing modelFreeOpen source, no licence fee
PlatformsLinux, macOSLinux, Self-hosted
CategoryBackupCloud

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Longhorn.

Which features does each one have?

They share no listed features; 12 appear only for Borg Backup and 6 only for Longhorn. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Borg Backup

  • Content-defined chunking
  • Deduplication
  • Compression
  • Authenticated encryption
  • Pruning
  • Mount archives
  • SSH
  • BorgBase

Only in Longhorn

  • Per-volume controllers
  • Synchronous replication
  • Snapshots and backups
  • Volume expansion
  • Disaster recovery volumes
  • Web interface

What is each one used for?

Borg Backup is most often brought in for deduplicated backups where daily full snapshots would otherwise be expensive. The jobs each tool is most often brought in to do.

Borg Backup

  • Deduplicated backups where daily full snapshots would otherwise be expensivenot Longhorn
  • Encrypted backup to a server you do not fully trust, since the server never sees plaintextnot Longhorn
  • Browsing previous versions by mounting an archive over FUSEnot Longhorn
  • Scripted server backups with no agent or daemon to runnot Longhorn

Longhorn

  • An on-premises Kubernetes cluster with local disks and no SAN that needs replicated persistent volumesnot Borg Backup
  • Edge sites where shipping a storage array is impractical and three nodes is the whole clusternot Borg Backup
  • A K3s deployment where the storage layer must be light enough to run alongside the workloadsnot Borg Backup
  • A team that wants snapshots and S3 backups of persistent volumes without paying per-node storage licencesnot Borg Backup

Where do Borg Backup and Longhorn fall short?

Borg Backup's most cited limit: linux, macOS and BSD only; Windows is not a supported platform. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Borg Backup

  • Linux, macOS and BSD only; Windows is not a supported platform
  • Command-line only, with no graphical interface in the project itself
  • Version 2.0 is still in beta, so production use means staying on the 1.4 line
  • Restoring requires the Borg tooling, since archives are a deduplicated chunk store rather than plain files

Longhorn

  • There is no vendor and no SLA, so a production incident at three in the morning is your own problem unless you buy SUSE Rancher Prime support separately
  • Synchronous replication across nodes means write latency depends on the slowest replica and the network between nodes, which makes it a poor fit for latency-sensitive databases
  • Every replica is a full copy, so three-way replication consumes three times the raw capacity, unlike erasure-coded systems that are far more space efficient
  • It is designed for block storage on modest clusters and does not scale to the node counts or throughput that Ceph or a commercial array handles, so growth eventually forces a migration
  • Recovery from certain degraded states, such as a volume stuck detaching or replicas failing to rebuild, requires manual intervention and knowledge of Longhorn internals that is not widely held

How much do Borg Backup and Longhorn cost?

Borg Backup is free to use; Longhorn is free to use. Plan by plan below, from each vendor's own pricing page.

Borg Backup

Free
  • FreeFree
    • Deduplication
    • Compression
    • Encryption

Longhorn

Free
  • LonghornFree
    • Apache 2.0 licensed, no licence fee
    • Community support via GitHub and Slack only
    • No vendor SLA or escalation path

Which should you pick?

Choose Borg Backup if

  • You need content-defined chunking.
  • You want to start without paying.
  • You work on Linux, macOS.
  • You also want deduplication.

Choose Longhorn if

  • You need per-volume controllers.
  • You want to start without paying.
  • You work on Linux, Self-hosted.
  • You also want synchronous replication.

Questions people ask

Is Borg Backup or Longhorn better?
It depends on the job. Borg Backup fits deduplicated backups where daily full snapshots would otherwise be expensive; Longhorn fits an on-premises Kubernetes cluster with local disks and no SAN that needs replicated persistent volumes. Borg Backup starts at Free and Longhorn at Free.
Which is cheaper, Borg Backup or Longhorn?
Borg Backup starts at Free and Longhorn at Free.
Does Borg Backup or Longhorn run on more platforms?
Borg Backup runs on Linux, macOS. Longhorn runs on Linux, Self-hosted.
Can I use Borg Backup for free?
Both have a free tier, so you can try either at no cost before committing.
What is Borg Backup best used for?
Borg Backup is most often used for deduplicated backups where daily full snapshots would otherwise be expensive, encrypted backup to a server you do not fully trust, since the server never sees plaintext, browsing previous versions by mounting an archive over fuse, scripted server backups with no agent or daemon to run. Of those, deduplicated backups where daily full snapshots would otherwise be expensive and encrypted backup to a server you do not fully trust, since the server never sees plaintext are not what Longhorn is typically brought in for.
What can Borg Backup do that Longhorn cannot?
Borg Backup covers Content-defined chunking, Deduplication, Compression, Authenticated encryption. Longhorn covers Per-volume controllers, Synchronous replication, Snapshots and backups, Volume expansion.

Answered from the vendors’ own pages

Borg Backup: What is the cost of BorgBackup?

BorgBackup is completely free and open source under the BSD license with no mandatory costs for the core software.

Source
Longhorn: Who do we call when it breaks?

Nobody, unless you buy SUSE Rancher Prime, which includes commercial support for Longhorn. This is the decisive question for production use.

Borg Backup: Are there paid services available for BorgBackup?

Yes, optional third-party services are available: BorgBase for specialized Borg repository hosting, Hetzner Storage Box with Borg support, and rsync.net cloud storage integration.

Source
Longhorn: How much capacity does replication cost?

Full copies, so three replicas means three times the raw capacity. Budget accordingly rather than assuming erasure coding efficiency.

Borg Backup: How can I support the BorgBackup project?

BorgBackup accepts voluntary contributions through Open Collective, GitHub Sponsors, Liberapay, and PayPal, though donations are optional.

Source
Longhorn: Is it suitable for production databases?

For modest workloads yes, but synchronous replication adds write latency and high-transaction databases usually want something faster.

Share

Related pages

Other head to heads