News for hackers. Stuff that matters.
Re:Backing up data like the adult I supposedly am by kneckebrot on Sunday September 20, 2020 @05:31PM (#24537579)
> half-assed rsync and shell script abomination

I don’t understand the author’s difficulties with a minimalist bash-wrapped rsync-based backup. You can even hardlink to unchanged files from a previous backup to save space.

This is how I wrap rsync: https://github.com/kaumanns/snapshot

And regarding file permissions: why not simply use an EXT4 backup drive instead of an FAT32 one? Non-rhetorical question.

My home network Raspberry has an HDD attached which gets fired up every couple days for a fresh snapshot of $HOME. The only thing I am missing is redundancy. And possibly encryption.

Re:Backing up data like the adult I supposedly am by linsomniac on Sunday September 20, 2020 @06:23PM (#24537941)
Getting an rsync wrapper to be robust takes some work. The wrapper script I use evolved over things I found while running it across ~200 hosts nightly for a couple years. It started as one of those hardlink scripts, but evolved into using zfs snapshots. My goal was to have it be the ultimate in reliability though, I wanted it to just work as much as possible, but be quiet unless the backup failed, at which point it should let me know.

15 years later, nightly backups across maybe 300 machines, this is what I have:

https://github.com/tummy-dot-com/tummy-backup/blob/master/sb...

Re:Backing up data like the adult I supposedly am by tomrod on Sunday September 20, 2020 @07:50PM (#24538430)
This is very elegant! Thank you for sharing. I look forward to studying it a bit deeper.