@cryptotaxi247 / infra / commits / c20032e1

haumea: add rob's backup server as a znapzend destination

Graham Christensen committed Mar 20, 2020 at 17:13 UTC c20032e15789b404ef544658c93c21bcf0ab556e
1 file changed +21
delft/haumea.nix
+21
@@ -149,6 +149,22 @@
149 openFirewall = true;
150 };
151
152 + programs.ssh = {
153 + extraConfig = ''
154 + Host rob-backup-server
155 + Hostname 83.162.34.61
156 + User nixosfoundationbackups
157 + Port 6666
158 + '';
159 +
160 + knownHosts = {
161 + rob-backup-server = {
162 + hostNames = [ "[83.162.34.61]:6666" ];
163 + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKUSblYu3vgZOY4hsezAx8pwwsgVyDsnZLT9M0zZsgZ";
164 + };
165 + };
166 + };
167 +
168 services.zfs.autoScrub.enable = true;
169
170 services.znapzend = {
@@ -174,6 +190,11 @@
190 host = "hydraexport@lord-nibbler.gsc.io";
191 dataset = "rpool/backups/nixos.org/haumea/safe";
192 };
193 + rob = {
194 + plan = "1hour=>5min,4day=>1hour,1week=>1day,1year=>1week,10year=>1month";
195 + host = "rob-backup-server";
196 + dataset = "tank/nixos-org/haumea/safe";
197 + };
198 };
199 };
200 };