• tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 day ago

      The ideal system probably is something like btrfs snapshot, then restic or similar of that snapshot to a remote disk.

      Btrfs doesn’t dedup identical data at different locations. Restic (or anything similar non-filesystem-level) cannot take an atomic snapshot. If you have something like a PostgreSQL database, where the DBMS ensures that what’s on disk is valid at any point in time, but only to an atomic view of the thing, you probably want an atomic snapshot of it.

      I dunno if anyone has a single utility that does both steps together.

      • iocase@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Zfs does atomic snapshots and also computes the diff between snapshots when you zfs send/receive to remote. You can set up syncoid scripts to do all of this automagically and ensure source and dest match, have regular snapshots, and to manage retention schhedules on both ends.