developer: infrastructure: hetzner{02,03} root file system backups

No information in the root filesystem is really worth saving as it
can be recreated from this documentation or even from scratch manually
if needs be. But it is cheap to keep that backup and it is worth the
effort if it can save a few hours of work when an accident happen.

The more sophisticated way to do it would be to setup DRBD with the
root file system. But this is not straightforward and to ensure it
won't get the admin in trouble when an accident happen is tricky. It
is the one time when every bit of complication can quickly become a
blocker or an unecessary burden.
This commit is contained in:
Earl Warren 2023-12-11 23:58:15 +01:00
parent c6f7b3f688
commit 691d8890cf
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -82,6 +82,13 @@ iface enp5s0.4000 inet static
mtu 1400
```
#### Root filesystem backups
- `hetzner03:/etc/cron.daily/backup-hetzner02`
`rsync -aHS --delete-excluded --delete --numeric-ids --exclude /proc --exclude /dev --exclude /sys --exclude /srv --exclude /var/lib/lxc 10.53.100.2:/ /srv/backups/hetzner02/`
- `hetzner02:/etc/cron.daily/backup-hetzner03`
`rsync -aHS --delete-excluded --delete --numeric-ids --exclude /proc --exclude /dev --exclude /sys --exclude /srv --exclude /var/lib/lxc 10.53.100.3:/ /srv/backups/hetzner03/`
#### DRBD
DRBD is configured with hetzner02 as the primary and hetzner03 as the secondary: