Live data from Hacker News

Time Machine-style backups with rsync (2018)

samuelhewitt.com

11–20 of 57 posts

Re: Time Machine-style backups with rsync (2018)

#11
post #4

If we spoke about a Linux box, one that prudently ran ZFS, or XFS on top of LVM, it would be possible to make a snapshot before the diffing and sending, so that the snapshot would be indeed point-in-time. IDK if whatever macOS uses for the filesystem supports snapshots. Otherwise, I think, restic or kopia are better for proper backups, and Syncthing for keeping a mirror copy. But the simplicity of this script in char…

Yes, APFS supports snapshots. [0]

[0] https://support.bombich.com/hc/en-us/articles/20686443871383...

Re: Time Machine-style backups with rsync (2018)

#13
post #8

Why make hard links when you can use rsync or syncthing to just make an actual copy on an external hard drive eg via wifi or just remotely?

Hard links are file level dedupe.

And then once all references to the inode are removed (by rotating out backups) it's freed. So there's no maintenance of the deduping needed, it's all just part of how the filesystem and --link-dest work together.

Re: Time Machine-style backups with rsync (2018)

#15

Ha. That's a throwback. I did the same thing, but with a more detailed writeup, in 2009: https://nuxx.net/blog/2009/12/06/time-machine-for-freebsd/ It was really handy, but I now use borg as it just works better.

HA! It read your post I read back then and I have been using it ever since. So thank you. I guess I need to check out borg ;)

Re: Time Machine-style backups with rsync (2018)

#18

"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.

> "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)

#19

"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.

> "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,…

In that case you are supposed to use your /other/ backup. Which you have.
Post reply on HN