mirror of
https://codeberg.org/forgejo/docs.git
synced 2025-01-11 00:50:57 -05:00
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:
parent
c6f7b3f688
commit
691d8890cf
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue