• by BoppreH on 8/19/2023, 8:33:13 AM

    How do you automate the checking if the backup worked correctly, in face of saf bugs, rsync bugs/misconfiguration, or bit rot?

    My solution is to pick a few random files (plus whatever is new), and compute their hashes on both local and remote versions. But it's slow and probabilistic. ZFS also helps, but I feel it's too transparent to rely on (what if the remote storage changes filesystem).

  • by otterpro on 8/19/2023, 1:01:09 PM

    Wow, I like this a lot, as it looks easy to run and it can sync to multiple targets. My local backup consists of JBOD (not RAID, ZFS or BTRFS) so I think this should work nicely. I've been using a shell script for doing something similar for backup, but it lacked a lot of the features.

  • by killingtime74 on 8/19/2023, 2:23:40 AM

    It might be safer to use an rsync lib that calls librsync or at least wraps the calls for you. I'm always suspicious of sub-shelling

  • by gizmo on 8/19/2023, 10:03:57 AM

    How does it deal with interrupted backups?

    Can it automatically prune backups older than N days?

    I don’t see anything about encryption.

  • by pmontra on 8/19/2023, 6:47:10 AM

    Why not rsnapshot? I've been using it to backup servers to servers for a lot years.

  • by BigBalli on 8/19/2023, 2:59:52 AM

    how is it better/safer than manually using rsync?

  • by sureglymop on 8/19/2023, 6:31:07 AM

    Have a look at restic for a good alternative to this.