HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
borgbackup
borg
Python2016–2026
borgbackup / borg

borg

Deduplicating archiver with compression and authenticated encryption.

45Distinct people
57Mentions
1Explicit recommenders
13.9KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Deduplicating archiver with compression and authenticated encryption.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

I highly recommend Borg Backup. I had to give up on Duplicati years ago, perhaps they're OK now. But Borg is magic. https://github.com/borgbackup/borg

rroot used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year57 dated mentions

Observed mentions: 2016-03-24 15:00:48 UTC to 2026-09-16 23:57:29 UTC.

02468102016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 8 mentions; 2 submissions, 6 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 10 mentions; 0 submissions, 10 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 7 mentions; 0 submissions, 7 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 8 mentions; 0 submissions, 8 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 5 mentions; 3 submissions, 2 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 7 mentions; 1 submissions, 6 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC826
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC10010
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC514
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC707
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC404
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC808
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC532
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC716
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC101

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
This is borg2! Please note that this is the README for (unstable) Borg2 / master branch. For general project infos, versioned docs, screen casts, please see there: https://www.borgbackup.org/ Borg2 is currently in beta testing and might get major and/or breaking changes between beta releases (and there is no beta to next-beta upgrade code, so you will have to delete and re-create repos). Thus, DO NOT USE BORG2 FOR YOUR PRODUCTION BACKUPS! Please help with testing it, but set it up additionally to your production backups. What is BorgBackup? BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it supports compression and authenticated encryption. The main goal of Borg is to provide an efficient and secure way to back up data. The data deduplication technique used makes Borg suitable for daily backups since only changes are stored. The authenticated encryption technique makes it suitable for backups to targets not fully trusted. See the installation manual or, if you have already downloaded Borg, docs/installation.rst to get started with Borg. Main features Space efficient storage Deduplication based on content-defined chunking is used to reduce the number of bytes stored: each file is split into a number of variable length chunks and only chunks that have never been seen before are added to the repository. A chunk is considered duplicate if its id_hash value is identical. A cryptographically strong hash or MAC function is used as id_hash, e.g. (hmac-)sha256 or (keyed) blake3. To deduplicate, all the chunks in the same repository are considered, no matter whether they come from different machines, from previous backups, from the same backup or even from the same single file. Compared to other deduplication approaches, this method does NOT depend on: file/directory names staying the same: So you can move your stuff around without killing the deduplication, even between machines sharing a repo. complete files or time stamps staying the same: If a big file changes a little, only a few new chunks need to be stored - this is great for VMs or raw disks. The absolute position of a data chunk inside a file: Stuff may get shifted and will still be found by the deduplication algorithm. Supported chunkers: fastcdc (the default) buzhash64 (improved), buzhash (as in borg 1.x) toeplitz-aes / rabin-aes / goldilocks-aes (keyed, AES-based; they make chunk-boundary fingerprinting attacks much harder) fixed (fixed blocksize, optionally with a differently sized header) Speed performance-critical code (chunking, compression, encryption) is implemented in C/Cython, using SIMD (NEON / AVX2 / AVX-512) where that is a win - the scan kernel is picked per platform local caching quick detection of unmodified files Data encryption All data can be protected client-side using 256-bit authenticated encryption (AES-OCB or chacha20-poly1305), ensuring data confidentiality, integrity and authenticity. If you do not need confidentiality, there are also modes that only authenticate (authenticated-sha256 / authenticated-blake3). Hashing You can choose between HMAC-SHA256 and Blake3. Obfuscation Optionally, Borg can actively obfuscate, e.g., the size of files/chunks to make fingerprinting attacks more difficult. Compression All data can be optionally compressed: lz4 (super fast, low compression) zstd (wide range from high speed and low compression to high compression and lower speed) zlib (medium speed and compression) lzma (low speed, high compression) Off-site backups Borg can store data on any remote host accessible via misc. protocols: ssh:// (REST-http-over-stdio-over-ssh) and http(s):// (REST-http-over-tcp). Significant performance gains can be achieved with these by having a remote agent (borg must be installed on the repo server). sftp:// s3:// / b2:// rclone: - lots of protocols / providers supported by rclone Backups mountable as file systems Backup archives are mountable as user-space file systems for easy interactive backup examination and restores (e.g., by using a regular file manager). Easy installation on multiple platforms We offer single-file binaries that do not require installing anything - you can just run them on these platforms: Linux (x86_64, arm64) macOS (arm64, x86_64) FreeBSD (x86_64) Windows (x86_64, MSYS2/MINGW borg.exe, experimental) Borg also runs on these platforms, but you need to install it from a package or from source: NetBSD (xattrs, but no ACLs) OpenBSD (no xattrs/ACLs support) illumos / Solaris (xattrs, but no ACLs) Cygwin (experimental) Windows Subsystem for Linux (WSL) on Windows 10/11 (experimental) Free and Open Source Software security and functionality can be audited independently licensed under the BSD (3-clause) license, see License for the complete license Easy to use For ease of use, set the BORG_REPO environment variable: $ export BORG_REPO=/path/to/repo Create a new backup repository (see borg repo-create --help for encryption options): $ borg repo-create --encryption=aes256-ocb --key-location=repokey Create a new backup archive: $ borg create docs ~/Documents Now do another backup, just to show off the great deduplication: $ borg create -v --stats docs ~/Documents Creating archive "docs" in repository /path/to/repo Repository: /path/to/repo Archive name: docs Archive fingerprint: 7714aef97c1a24539cc3dc73f79b060f14af04e2541da33d54c7ee8e81a00089 Time (nominal): Mon, 2026-08-03 19:57:35 +0200 Time (start): Mon, 2026-08-03 19:57:35 +0200 Time (end): Mon, 2026-08-03 19:57:35 +0200 Duration: 0.01 seconds Number of files: 24 Original size: 29.73 MB Deduplicated size: 520 B ... For demo videos, check out our homepage: https://www.borgbackup.org/#demo Helping, donations and bounties, becoming a Patron Your help is always welcome! Spread the word, give feedback, help with documentation, testing or development. You can also give monetary support to the project, see here for details: https://www.borgbackup.org/#fund Thanks to every
Read the full README on GitHub

What Hacker News says

57 sources
>Borg ... fantastic I needed to temporarily move off 20TB from my NAS and bought a Hetzner storage box. I wanted to encrypt the data before sending it so i went with the borg ssh mount. Long story short, borg failed a couple of times due to https://github.com/borgbackup/borg/issues/7672, i resumed it per documentation and got 2gb of silently corrupted data. There was no way to do data integrity checks due to broken pipes and there was no option to resume the job from the previous point either. I couldn't afford to go with the s3, backblaze wasn't an option due to placing trust into their proprietary client doing the encryption and i got majorly screwed in the end.
In Backups Aren't Simple
Others have already mentioned Syncthing[^1]. Here's what I'm doing on a budget since I don't have a homeserver/NAS or anything like that. First you need to choose a central device where you're going to send all of the important stuff from other devices like smartphones, laptops, etc. Then you need to setup Syncthing, which works on linux, macos, windows and others. For android there's Syncthing-fork[^2] but for iOS idk. Setup the folders you want to backup on each device, for android, the folders I recommend to backup are DCIM, documents, downloads. For the most part, everything you care about will be there. But I setup a few others like Android/media/WhatsApp/Media to save all photos shared on chats. Then on this central device that's receiving everything from others, that's where you do the "real" backups. I my case, I'm doing backups t
Read the rest
o a external HDD, and also to a cloud provider with restic[^3]. I highly recommend restic, genuinely great software for backups. It is incremental (like BTRFS snapshots), has backends for a bunch of providers, including any S3 compatible storage and if combined with rclone, you have access to virtually any provider. It is encrypted, and because of how it was built, can you still search/navigate your remote snapshots without having to download the entire snapshot (borg[^4] also does this), the most important aspect of this is that you can restore individual folders/files. And this crucial because most providers for cloud storage will charge you more depending on how much bandwidth you have used. I have already needed to restore files and folders from my remote backups in multiple occasions and it works beautifully. [^1]: https://github.com/syncthing/syncthing [^2]: https://github.com/Catfriend1/syncthing-android [^3]: https://github.com/restic/restic [^4]: https://github.com/borgbackup/borg
In Make Your Own Backup System – Part 1: Strategy Before Scripts
borgbackup developer here: TL;DR: don't panic, all is good. :-) Longer version: - borg 1.x style “append-only” was removed, because it heavily depended on how the 1.x storage worked (it was a transactional log, always only appending PUT/DEL/COMMIT entries to segment files - except when compacting segments [then it also deleted segment files after appending their non-deleted entries to new segments]) - borg 2 storage (based on borgstore) does not work like that anymore (for good reasons), there is no “appending”. thus “—append-only” would be a misnomer. - master branch (future borg 2 beta) has “borg serve —permissions=…” (and BORG_PERMISSIONS env var) so one can restrict permissions: “all”, “no-delete”, “write-only”, “read-only” offer more functionality than “append only” ever had. “no-delete” disallows data deleting as well as data overwr
Read the rest
iting. - restricting permissions in a store on a server requires server/store side enforced permission control. “borg serve” implements that (using the borgstore posixfs backend), but it could be also implemented by configuring a different kind of store accordingly (like some cloud storage). it’s hard to test that with all sorts of cloud storage providers though, so implementing it in the much easier to automatically test posixfs was also a motivation to add the permissions code. Links: - docs: https://github.com/borgbackup/borg/pull/8906/files - code: https://github.com/borgbackup/borg/pull/8893/files - code: https://github.com/borgbackup/borg/pull/8844/files - code: https://github.com/borgbackup/borg/pull/8837/files Please upvote, so people don't get confused.
In BorgBackup 2 has no server-side append-only anymore
The GitHub ticket hints that support for cloud storage backends (s3) might come in a future release: as you see above, there is already a huge scope of what should be done. to not grow the scope even further, some stuff shall not be done (now): * no new locking system * no public key cryptography (neither by gpg nor by reinventing gpg for borg) * not adding cloud storage backends (like s3) https://github.com/borgbackup/borg/issues/6602
In BorgBackup: Deduplicating archiver with compression and encryption

Showing the 15 most recent of 57 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.