News for hackers. Stuff that matters.
Re:BorgBackup, Deduplicating archiver with compression and e... by RockRobotRock on Tuesday December 27, 2022 @04:25PM (#34154052)
Does anyone have a take on Kopia vs Restic?
Re:BorgBackup, Deduplicating archiver with compression and e... by btschaegg on Tuesday December 27, 2022 @05:53PM (#34154955)
A major factor why I wouldn't want to use Kopia (I looked into it) ist that it is opinionated with regards to how your system is set up (old-school unix FS layouts in a "pets, not cattle" way). It assumes the location of config files and does not allow you to change the backup path that's stored in a snapshot's metadata.

That's bad if you want to use it

1) on NixOS (I don't want backup configs laying around in `~/.config`). As Indy famously said: "That belongs in a Nix expression!"

Edit: On a second note: Why have mandatory config files at all? I don't have an issue with having the option or it being the default, but for my use case being able to specify the whole repository config via arguments sounds considerably more sane.

2) with ZFS snapshots (yes, I'm backing up `/path/to/dataset/.zfs/snapshot/<timestamp>/foo/bar`, but that should not be its path in the metadata!)

OTOH, it seems to have the upside that you can apparently alter snapshots after the fact more easily (e.g. if you find out you shouldn't have backed up that gigantic VM image you just moved somewhere temporarily). I leave the decision on whether this is a footgun or not to you.

And to be clear: The ZFS snaphot thing is also a pain with Restic, too. You can hack around it somewhat better with something like systemd-nspawn, but it really shouldn't be that hard.

Re:BorgBackup, Deduplicating archiver with compression and e... by XorNot on Tuesday December 27, 2022 @06:27PM (#34155317)
ZFS snapshot thing was also a huge pain with bup back in the day. I remember doing some work to add in a path graft system for it but it never got merged.

Backup tool authors never seem to support this use case.

Re:BorgBackup, Deduplicating archiver with compression and e... by Freaky on Tuesday December 27, 2022 @09:17PM (#34156763)
This is why I made https://github.com/Freaky/zfsnapr

Instead of working out how to teach my backup tools about snapshots, I just mount them in a subtree and use that as a chroot env.

Re:BorgBackup, Deduplicating archiver with compression and e... by cyounkins on Tuesday December 27, 2022 @09:46PM (#34156943)
For ZFS snapshots with restic I don't use the timed snapshots and instead create a new specially named one. There's a code snippet at https://medium.com/@cyounkins/correct-backups-require-filesy...
Re:BorgBackup, Deduplicating archiver with compression and e... by proactivesvcs on Wednesday December 28, 2022 @12:00AM (#34157690)
FYI removing data from backup repositories (e.g. deleting files from a backup) is currently in the master branch of restic and will likely be in the next release.
Re:BorgBackup, Deduplicating archiver with compression and e... by attentive on Wednesday December 28, 2022 @12:13AM (#34157750)
For context, I am long time Kopia user.

Looks like compression only added in the latest release of restic.

No mounts on windows.

No GUI?

Lack of compression was likely the reason I went with Kopia.