haumea: backup postgres to my homeserver
This means we now get redundant backups of hydra's database to me and delroth, which fixes the bus factor on that part of the infra.
Martin Weinelt committed
Feb 13, 2024 at 00:52 UTC
00e0eb4e7ed217057ae7f4b94f5cf7a02879bbcc
1 file changed
+15
delft/haumea.nix
+15
@@ -150,6 +150,10 @@
150
hostNames = [ "smol.delroth.net" ];
151
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID9Ta4DYE3YxXzV57s6TX6KEbIa3O4re+J4NzATCOiXb";
152
};
153
+ hexa-backup-server = {
154
+ hostNames = [ "meduna.hexa-home.v6.army" ];
155
+ publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDUe5BqMDt562KOIcUm4RqZC5ejmd62elkYKkqExUYsl";
156
+ };
157
};
158
};
159
@@ -230,6 +234,17 @@
234
};
235
})
236
237
+ (defaultBackupJob // {
238
+ name = "hexa";
239
+ connect = {
240
+ identity_file = "/root/.ssh/id_ed25519";
241
+ type = "ssh+stdinserver";
242
+ host = "meduna.hexa-home.v6.army";
243
+ user = "zrepl";
244
+ port = 22;
245
+ };
246
+ })
247
+
248
# XXX: Seems to be broken as of 2024-02-12 (permission denied).
249
{
250
# run with `zrepl signal wakeup safe_ma27` after