News for hackers. Stuff that matters.
Re:Time Machine-style Backups with rsync (2018) by LeoPanthera on Monday February 02, 2026 @12:28AM (#46852760)
"borg" has basically solved backups permanently. It's deduplicated, even across snapshots, compressed, and end-to-end encrypted. I'm surprised it's not more well known.
Re:Time Machine-style Backups with rsync (2018) by IshKebab on Monday February 02, 2026 @03:18AM (#46853679)
I used to use Borg, but Restic (and it's Rust clone Rustic) are better.
Re:Time Machine-style Backups with rsync (2018) by setopt on Monday February 02, 2026 @07:56AM (#46855498)
Why?

I’m currently trying to decide between Borg and Restic myself. Borg has worked very well for me in the past, and I’m a bit excited by the new Vorta GUI frontend. But I already have a BackBlaze B2 setup for backing up my Mac, and Restic would let me continue to use that as a backup store. I’m interested in hearing about differentiating points between them.

Re:Time Machine-style Backups with rsync (2018) by electroly on Monday February 02, 2026 @08:33AM (#46855859)
Primarily it's the reason you already know: restic and borg are the same model, but restic doesn't need it to be an ssh-accessible filesystem on the remote end. Restic can send backups almost anywhere, including object storage like your Backblaze B2 (that's what I use with restic, too). I agree with OP: restic is strictly better. There's no reason to use borg today; restic is a superset of its functionality.
Re:Time Machine-style Backups with rsync (2018) by stogot on Monday February 02, 2026 @09:38AM (#46856542)
Does restic work well with truenas?
Re:Time Machine-style Backups with rsync (2018) by electroly on Tuesday February 03, 2026 @09:19AM (#46871288)
I don't know specifically, but it's a self-contained single file Go executable. It doesn't need much from a Linux system beyond its kernel. Chances are good that it'll work.
Re:Time Machine-style Backups with rsync (2018) by setopt on Tuesday February 03, 2026 @08:59AM (#46871057)
Thanks! Then I’ll look more at Restic :)
Re:Time Machine-style Backups with rsync (2018) by locknitpicker on Monday February 02, 2026 @01:02AM (#46852919)
> "borg" has basically solved backups permanently. It's deduplicated, even across snapshots, compressed, and end-to-end encrypted.

Deduplication helps minimize space, but isn't it a major liability in backups? I mean, what happens when you try to restore your backups but a lone sector holding a file from way back in the past happens to not be recoverable? Doesn't it mean that no matter how frequent your backups are, your data is lost?

Re:Time Machine-style Backups with rsync (2018) by LeoPanthera on Monday February 02, 2026 @03:12AM (#46853648)
This is bordering on paranoia. If the bad sector contains a critical part of the filesystem, you're going to lose everything anyway.

Do modern disks even have physical "sectors" anymore? Isn't it all virtual?

Without dedup you're just going to backup less stuff, which is far worse.

Re:Time Machine-style Backups with rsync (2018) by locknitpicker on Monday February 02, 2026 @03:23AM (#46853704)
> This is bordering on paranoia.

What? You actually think that the mere idea of a backup getting corrupted is something that is "bordering on paranoia"? Have you ever heard of redundancy or even RAID?

> If the bad sector contains a critical part of the filesystem, you're going to lose everything anyway.

Do you honestly failed to understand that the problem is actually the "lose everything" part?

Re:Time Machine-style Backups with rsync (2018) by stuxnet79 on Monday February 02, 2026 @01:35AM (#46853099)
If you are storing your data in a filesystem like ZFS then the risk is lower since you'll know you have a bad sector long before you attempt to deduplicate. But I otherwise share your same concerns and I'm eager to hear from others how to mitigate this. I've lost a volume due to poor practice while encrypting so I'm understandably reluctant to overcomplicate my backup strategies in the name of space compression or privacy.
Re:Time Machine-style Backups with rsync (2018) by haradion on Monday February 02, 2026 @01:24AM (#46853050)
It doesn't really hurt in practice because it's only one part of the full backup procedure. Deduplicate to save space; re-duplicate the (smaller) backups to separate media for redundancy; scrub regularly for bit rot and rotate your media. A proper backup system requires all but the first of those anyway.
Re:Time Machine-style Backups with rsync (2018) by NSUserDefaults on Monday February 02, 2026 @01:22AM (#46853035)
In that case you are supposed to use your /other/ backup. Which you have.
Re:Time Machine-style Backups with rsync (2018) by DaSHacka on Monday February 02, 2026 @03:09AM (#46853626)
Defeating the point of deduplication...
Re:Time Machine-style Backups with rsync (2018) by homebrewer on Monday February 02, 2026 @06:54AM (#46854970)
You don't have backups if you only have one "backup". Look up sysadmin's 3-2-1.
Re:Time Machine-style Backups with rsync (2018) by NSUserDefaults on Monday February 02, 2026 @08:40AM (#46855923)
On a single drive, deduplicate all you want. But you need to have two drives, at least, anyway.
Re:Time Machine-style Backups with rsync (2018) by dmd on Monday February 02, 2026 @08:42AM (#46855936)
This is why Proxmox Backup Server has scheduled "verify" tasks which look at the sha256 of every stored hunk to make sure it hasn't rotted on disk. (If it has, it makes sure to re-acquire that data on the next backup - hopefully it's still available!)
Re:Time Machine-style Backups with rsync (2018) by DrBurrito on Monday February 02, 2026 @01:07PM (#46859104)
the backups in borg and restic are not classical copies, each snapshot is not independent, it is a collection of hashed blocks. In a sense, time machine and hard links do the same: they reference the same bits across snapshots, saving space. for the bit rot / faulty sector or failed drive, you use redundancy with RAID or similar in your file system. if all else fails and your backup system burns in a fire, then you reach for your other backup. deduplication and redundancy solve different problems.