Hi Frank,
Not quite - I see I could have been clearer. I "experiment" a lot - which means things break so I need to get back running quickly. So the purpose of the online repos and snapshots is just for that - quick recovery. Longer term I want to have an offline copy for a real disaster (yes, I have needed to restore almost 20TiB including the online backups on the moosefs system three months ago - self caused :) as well as often needing to step back a few days/weeks for a historical copy of a file, or less often a system restore on a host. By the way, this discussion has been useful as I found some failed backups due to a missing dependency in the borgbackup ebuild when looking closer at it - has a bug. Need to do some watcher scripts to detect that.
stage 1: online, immediately available
Hosts (those with actual attached storage - a mixture of intel, arm32 and arm64 devices are backed up to their own borg repo 3 times a day via push. One repo per machine on moosefs.
A separate script does an hourly backup of VM, LXC images, and various data stores via a moosefs snapshot.
stage 2: resource management for the snapshots
3 times a day, a script does a borg create on the latest snapshop at the time, and when complete deletes all previous snapshots (-1) so at that point I have two older snapshots available + a couple created during the borg run - note that large multi GiB snapshots can quickly use up all memory (32GiB) on the moosefs master unless culled regularly.
stage 3: offline because disasters happen :)
All borg repos are on moosefs with a single root directory
(/mnt/mfs/backups) so once every day or so I manually mount the
offline disk and do a borg create on the backup directory. I was
doing this once a week, but operationally its easier to do 5-10
minutes every day than an hour once a week due to the scale of
changes over the longer time period.
So, its looks like:
Host A ──[3/day]──> Online-Borg A ─┐
├─────────────────────────[common directory]---[manual, 1/day]──> Offline-Borg
Host ... ──[3/day]──> Online-Borg ... ─┘ |
? |
Snapshots ──[hourly]──> Online-Borg "snaps" ─[3/day] ─────────────────┘
BillK