frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

BorgBackup 2 has no server-side append-only anymore

https://github.com/borgbackup/borg/pull/8798
78•jaegerma•3h ago

Comments

LeoPanthera•2h ago
Is that a big deal? You should probably be doing this with zfs immutable snapshots anyway. Or equivalent feature for your filesystem.
topato•2h ago
I'm also completely confused why this was at the top of my hacki, seems completely innocuous
ajb•2h ago
Ideally a backup system should be implementable in such a way that no credential on the machines being backed up, enable the deletion or modification of existing backups. That's so that if your machines are hacked a) the backups can't be deleted or encrypted in a ransom attack and b) If you can figure out when the first compromise occurred, you know that before that date the backup data is not compromised.

I guess some people might have been relying on this feature of borgbackup to implement that requirement

philsnow•2h ago
The purpose of the append-only feature of borgbackup is to prevent an attacker from being able to overwrite your existing backups if they compromise the device being backed up.

Are you talking about using ZFS snapshots on the remote backup target? Trying to solve the same problem with local snapshots wouldn't work because the attack presumes that the device that's sending the backups is compromised.

LeoPanthera•2h ago
> Are you talking about using ZFS snapshots on the remote backup target?

Yes.

homebrewer•2h ago
There's not much sense in using these advanced backup tools if you're already on ZFS, even if it's just on the backup server, I would stick with something simpler. Their whole point is in reliable checksums, incremental backups, deduplication, snapshotting on top of a 'simple' classical filesystem. Sounds familiar to any ZFS user?
nijave•2h ago
Dedupe is efficient in Borg. The target needs almost no RAM
globular-toast•1h ago
Are there any good options for an off-site zfs backup server besides a colo?

Would be interested to know what others have set up as I'm not really happy with how I do it. I have zfs on my NAS running locally. I backup to that from my PC via rsync triggered by anacron daily. From my NAS I use rclone to send encrypted backups to Backblaze.

I'd be happier with something more frequent from PC to NAS. Syncthing maybe? Then just do zfs sync to some off site zfs server.

gaadd33•1h ago
I think Rsync.net supports zfs send/receive
aeadio•32m ago
Aside from rsync.net which was mentioned in a sibling comment, there’s also https://zfs.rent, or any VPS with Linux or FreeBSD installed.
aborsy•2h ago
Borg2 has been in beta testing for a very long time.

Anyone knows when will it come out of beta?

mrtesthah•2h ago
FYI for those using restic, you can use rest-server to achieve a server-side-enforced append-only setup. The purpose is to protect against ransomware and other malicious client-side operations.
homebrewer•2h ago
For anyone looking to migrate off borg because of this, append-only is available in restic, but only with the rest-server backend:

https://github.com/restic/restic

https://github.com/restic/rest-server

which has to be started with --append-only. I use this systemd unit:

  [Unit]
  After=network-online.target

  [Install]
  WantedBy=multi-user.target

  [Service]
  ExecStart=/usr/local/bin/rest-server --path /mnt/backups --append-only --private-repos
  WorkingDirectory=/mnt/backups
  User=restic
  Restart=on-failure
  ProtectSystem=strict
  ReadWritePaths=/mnt/backups
I also use nginx with HTTPS + HTTP authentication in front of it, with a separate username/password combination for each server. This makes rest-server completely inaccessible to the rest of the internet and you don't have to trust it to be properly protected against being hammered by malicious traffic.

Been using this for about five years, it saved my bacon a few times, no problems so far.

champtar•1h ago
If you want to use some object storage instead of local disk, rclone can be a restic server: https://rclone.org/commands/rclone_serve_restic/
rsync•42m ago
You can achieve append-only without exposing a rest server provided that 'rclone' can be called on the remote end:

  rclone serve restic --stdio
You add something like this to ~/.ssh/authorized_keys:

  restrict,command="rclone serve restic --stdio --append-only backups/my-restic-repo" ssh-rsa ...
... and then run a command like this:

  ssh user@rsync.net rclone serve restic --stdio ...
We just started deploying this on rsync.net servers - which is to say, we maintain an arguments allowlist for every binary you can execute here and we never allowed 'rclone serve' ... but now we do, IFF it is accompanied by --stdio.
dblitt•2h ago
It seems the suggested solution is to use server credentials that lack delete permissions (and use credentials that have delete for compacting the repo), but does that protect against a compromised client simply overriding files without deleting them?
qeternity•2h ago
Append-only would imply yes. There is no overwriting in append-only. There is only truncate and append.
mosselman•2h ago
You have misread I think.

There used to be append-only, they've removed it and suggest using a credential that has no 'delete' permission. The question asked here is whether this would protect against data being overwritten instead of deleted.

throwaway984393•1h ago
No. Delete and overwrite are different. You need overwrite protection in addition to delete protection. The solution will vary depending on the storage system and the use case. (The comment in the PR is not an exhaustive description of potential solutions)
TheFreim•2h ago
I've been using Borg for a while, I've been thinking about looking at the backup utility space again to see what is out there. What backup utilities do you all use and recommend?
TiredOfLife•2h ago
Kopia
conception•1h ago
Kopia is surprisingly good. I use it with a b2 backend, had percentage based restore verification for regulatory items and is super fast. Only downside is lack of enterprise features/centralized management.
Saris•2h ago
Restic is nice. Backrest if you like a webUI.
singhrac•50m ago
I spent too long looking into this and settled on restic. I'm satisfied with the performance for our large repo and datasets, though we'll probably supplement it with filesystem-based backups at some point.

Borg has the issue that it is in limbo, i.e. all the new features (including object storage support) are in Borg2, but there's no clear date when that will be stable. I also did not like that it was written in Python, because backups are not always IO blocked (we have some very large directories, etc.).

I really liked borgmatic on Borg, but we found resticprofile which is pretty much the same thing (it is underdiscussed). After some testing I think it is important to set GOGC and read-concurrency parameters, as a tip. All the GUIs are very ugly, but we're fine a CLI.

If rustic matures enough and is worth a switch we might consider it.

seymon•2h ago
Borg vs Restic vs Kopia ?

They are so similar in features. How do they compare? Which to choose?

aborsy•1h ago
Restic is the winner. It talks directly to many backends, is a static binary (so you can drop the executable in operating systems which don’t allow package installation like a NAS OS) and has a clean CLI. Kopia is a bit newer and less tested.

All three have a lot of commands to work with repositories. Each one of them is much better than closed source proprietary backup software that I have dealt with, like Synology hyperbackup nonsense.

If you want a better solution, the next level is ZFS.

seymon•1h ago
I am already using zfs on my NAS where I want my backups to be. But I didn't consider it for backups till now
aeadio•33m ago
You can consider something like syncthing to get the important files onto your NAS, and then use ZFS snapshots and replication via syncoid/sanoid to do the actual backing up.
the_angry_angel•1h ago
Kopia is awesome. With exception to it’s retention policies, but work like no other backup software that I’ve experienced to date. I don’t know if it’s just my stupidity, being stuck in 20 year thinking or just the fact it’s different. But for me, it feels like a footgun.

The fact that Kopia has a UI is awesome for non-technical users.

I migrated off restic due to memory usage, to Kopia. I am currently debating switching back to restic purely because of how retention works.

spiffytech•1h ago
I picked Kopia when I needed something that worked on Windows and came with a GUI.

I was setting up PCs for unsophisticated users who needed to be able to do their own restores. Most OSS choices are only appropriate for technical users, and some like Borg are *nix-only.

jbverschoor•2h ago
Moved to duplicacy. Works great for me
neilv•1h ago
I used to have a BorgBackup server at home that used append-only and restricted-SSH.

It wasn't perfect, but it did protect against some scenarios in which a device could be majorly messed up, yet the server was more resistant to losing the data.

For work, the backup schemes include separate additional protection of the data server or media, so append-only added to that would be nice, as redundant protection, but not as necessary.

nathants•1h ago
Do something simpler. Backups shouldn’t be complex.

This should be simpler still:

https://github.com/nathants/backup

yread•56m ago
Uh, who has the money to store backups in AWS?!
nathants•52m ago
Depends how big they are. My high value backups go into S3, R2, and a local x3 disk mirror[1].

My low value backups go into a cheap usb hdd from Best Buy.

1. https://github.com/nathants/mirror

seized•14m ago
Glacier Deep Archive is the cheapest cloud backup option at $1USD/month/TB.

Google Cloud Store Archive Tier is a tiny bit more.

orsorna•24m ago
Is this a joke?

I don't see what value this provides that rsync, tar and `aws s3 cp` (or AWS SDK equivalent) provides.

nathants•23m ago
How do you version your rsync backups?
iforgotpassword•13m ago
Dirvish
nathants•11m ago
Perl still exists?
puffybuf•1h ago
I've been using device mapper+encryption to backup my files to encrypted filesystem on regular files. (cryptsetup on linux, vnconfig+bioctl on openbsd). Is there a reason for me to use borgbackup? Maybe to save space?

I even wrote python scripts to automatically cleanup and unmount if something goes wrong (not enough space etc). On openbsd I can even Double encrypt with blowfish(vnconfig -K) and then a diff alg for bioctl.

anyfoo•55m ago
Does your solution do incremental backups at all? I have backups going back years, because through incremental backups each delta is not very large.

Every once in a while things gets sparsed out, so that for example I have daily backups for the recent past, but only monthly and then even yearly for further back.

Show HN: FounderFodder – Inspiration for Founders, Makers and Tinkerers

https://founderfodder.com
1•emrah•1m ago•0 comments

Fncad: Cad editor, like openscad but sdf

https://fncad.github.io/
1•FeepingCreature•5m ago•1 comments

Lawyers face 'severe' penalties for fake AI-generated citations, UK court warns

https://techcrunch.com/2025/06/07/lawyers-could-face-severe-penalties-for-fake-ai-generated-citations-uk-court-warns/
1•frays•9m ago•0 comments

Preservation and protection of prey, not cooking, as the drivers of early fire

https://www.frontiersin.org/journals/nutrition/articles/10.3389/fnut.2025.1585182/full
1•bookofjoe•23m ago•0 comments

HN: Nurofile – Replace Your Resume with an AI Identity

https://nurofile.ai/
2•gulaydin•27m ago•2 comments

Meta found a new way to violate your privacy. Here's what you can do

https://www.msn.com/en-us/news/technology/meta-found-a-new-way-to-violate-your-privacy-here-s-what-you-can-do/ar-AA1GecPs
2•ColinWright•29m ago•0 comments

Lessons from That 1834 Landscape Gardening Guidebook

https://fi-le.net/pueckler/
1•fi-le•31m ago•0 comments

False Sense of Security-as-a-Service

https://www.fsosaas.com
1•kyleomalley•31m ago•1 comments

What's a violin plot and how to make one?

https://blog.engora.com/2021/11/whats-violin-plot-and-how-to-make-one.html
1•Vermin2000•33m ago•0 comments

Turron: Analyze video excerpts and find matches using perceptual hashing

https://github.com/Fl1s/turron
1•thunderbong•35m ago•0 comments

Simulating Time with Square-Root Space

https://arxiv.org/abs/2502.17779
8•jonbaer•39m ago•1 comments

You Need Much Less Memory Than Time

https://blog.computationalcomplexity.org/2025/02/you-need-much-less-memory-than-time.html
17•jonbaer•40m ago•0 comments

Coventry Very Light Rail

https://www.coventry.gov.uk/coventry-light-rail
1•Kaibeezy•44m ago•0 comments

Global analysis of multinational corporations' role in environmental conflicts

https://www.sciencedirect.com/science/article/pii/S0959378025000433
3•PaulHoule•51m ago•0 comments

Project-turned-app helps users find free mental health services worldwide

https://nomadful.io
1•liquidiguisante•52m ago•0 comments

Largest ever data leak exposes over 4B user records

https://cybernews.com/security/chinese-data-leak-billiones-records-exposed/
1•azalemeth•55m ago•0 comments

Trump administration takes aim at Biden and Obama cybersecurity rules

https://techcrunch.com/2025/06/07/trump-administration-takes-aim-at-biden-and-obama-cybersecurity-rules/
1•baxtr•59m ago•0 comments

The Pentagon Disinformation That Fueled America's UFO Mythology

https://www.wsj.com/politics/national-security/ufo-us-disinformation-45376f7e
6•toomanyrichies•1h ago•1 comments

Show HN: Visualize control flow, data flow attacks for open source MCP server

https://early.mcpwned.com/dashboard/scanner
1•coderinsan•1h ago•0 comments

Bresenham's Line Algorithm

https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
2•ZeljkoS•1h ago•0 comments

Neuron–Astrocyte Associative Memory

https://www.pnas.org/doi/10.1073/pnas.2417788122
4•wjb3•1h ago•1 comments

Dietary Sugar Intake and Incident Type 2 Diabetes Risk

https://www.sciencedirect.com/science/article/pii/S2161831325000493
3•domofutu•1h ago•1 comments

MCP vs. API

https://glama.ai/blog/2025-06-06-mcp-vs-api
2•punkpeye•1h ago•0 comments

Why Understanding Software Cycle Time Is Messy, Not Magic

https://arxiv.org/abs/2503.05040
1•SiempreViernes•1h ago•1 comments

E-bikes and e-scooters are popular – but dangerous. Expert suggests improvements

https://theconversation.com/e-bikes-and-e-scooters-are-popular-but-dangerous-a-transport-expert-explains-how-to-make-them-safer-257126
3•gnabgib•1h ago•2 comments

Show HN: Small tool to query XML data using XPath

https://github.com/linkdd/xq
3•linkdd•1h ago•1 comments

Béla Bollobás explains the significance of Indian mathematician Ramanujan (1963) [video]

https://www.youtube.com/watch?v=fGFK7rhpbWk
2•squircle•1h ago•1 comments

60–70% of YC X25 Agent Startups Are Using TypeScript

3•Arindam1729•1h ago•5 comments

The Study No One Talks About [video]

https://www.youtube.com/watch?v=CqjsFTjLNyE
1•squircle•1h ago•0 comments

Ask HN: How to Get Started with CUDA

2•upmind•1h ago•0 comments