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:00:58 PM 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

8 sources
The main question, aside from performance, is... - Is there an (abstract) attack model? (Assuming that you have one if you ought to) - Then: Can an attacker insert collisions into the DB, and is that problematic? - Then: A non-cryptographic hash might be much easier to "reverse", especially for short inputs. Is that problematic? If none of these are problematic you probably don't need a cryptographic hash. Regarding performance: BLAKE2b on a Haswell gives you, in a "naive", pure C implementation (compiled to pure, non-vectorized AMD64 assembly), about 230 MB/s / GHz. (Referring to https://github.com/borgbackup/borg/issues/45#issuecomment-22... ), ie. something like 850-1000 MB/s on a desktop SKU. There are implementations that are around 10-30 % faster than that. AFAIK all these newer n-c hash functions that popped up in the last couple y
Read the rest
ears perform (on desktop SKUs) in the area of beyond ~10 GB/s.
In SeaHash: Explained
For my personal stuff I have a seafile server on a vps. I have 'full history' turned on, which essentially gives me snapshots of every uploaded change of every file, browsable by individual file or by date and time for the whole backup space. For work stuff, I've been loving borg-backup. Others here have mentioned why it's superior. I agree. Once they get support for remote object stores like S3, it will be hands down the best backup solution: https://github.com/borgbackup/borg/issues/102. Even though, there is a fuse layer for S3 that may work (haven't tried that yet).
In Ask HN: What's your backup solution?
Borg backup (https://borgbackup.readthedocs.io/) Borg is a cross-platform (linux - osx - bsd) backup tool with deduplication, encryption and compression. It's written in Python (>95 %) with some Cython and C for low-level bit bashing. > What do you hope to build this month? We're working towards the release of 1.1.0 which may occur at the end of this month or the next. It includes a lot of features and general improvements already, but there's always something to do! > What kind of skills do you need? We can always use more testers and people writing better documentation. Code contributions are always welcome as well - test improvements, bug fixes, new features and so on. There has been initial work on a native Windows version to the point that the basic features work, but it would really benefit from an active Windows developer. Windows
Read the rest
issues: https://github.com/borgbackup/borg/issues?q=is%3Aopen+is%3Ai... License: 3-clause BSD. Contribution guidelines: https://borgbackup.readthedocs.io/en/latest/development.html We also participate in Bountysource.
In Ask HN: Who needs contributors? (October 2016)
rchipman·Mar 24, 2016Submission

Make a backup NOW

I feel obligated to make a public service announcement after an incredibly close call today. I had my backpack stolen, and (luckily) was able to recover it hours later. Inside, was my computer. More importantly, inside was my data, and it was not backed up. I have been intending to set up my backup system for a long time now, but hadn't yet found the time to do so. Somehow, I managed to convince myself that nothing bad would happen in the mean time; this was a wake-up call. Don't be like me. Start making backups. I'm doing it right now. I'm enjoying borg backup (https://github.com/borgbackup/borg).
6 points · Open discussion

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.