Backups for local systems#
Backups are performed using borgbackup
The warehouse is located on voile
NixOS#
A nixos module exists under modules/nixos/borg.
Darwin#
The darwin module was custom built and is under modules/darwin/borg.
Adding a host#
- In this repo, run
just borg-generate-secrets <hostname> - This will create a repo key and passphrase in
secrets.yamlvia sops - Commit and push the secrets
- Run
just sops-update-hoststo re-encrypt for all keys - Add the host to borgwarehouse
- Configure the host
...
tsunaminoai.borg = {
enable = true;
repo = "8a95a28d";
};
...
- Deploy
Schedule#
Backups are scheduled to run at 3am EST daily. Cronjobs for status and storage usage are configured in uptime kuma to alert if the backup fails or if the storage is getting low.
Restoring from Backup#
See Restoring a Host from Backup for the full procedure, including how to handle sops key rotation after a machine wipe.
Backups for MS365#
Backups for all of the sc2.in domain are performed daily by the Active Backup MS365 package running on voile.
The portal for backups is located at Active Backup for Microsoft 365 Portal
