Remix.run Logo
EGreg 8 hours ago

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?

c0nsumer 7 hours ago | parent | next [-]

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.

00deadbeef an hour ago | parent | prev | next [-]

It does make an actual copy but then it builds a directory structure that you can browse by date (like Time Machine). That directory contains hard links so only one copy of a file is ever backed up but you see contents that match the date of the backup.

kej 7 hours ago | parent | prev [-]

The hard links are to the most recent backup before the one happening now in the script, so that you aren't storing full copies of files that haven't changed between backups.