From c4ff9f0d26e7fce7d83d076dda5445801cca6676 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 5 Jan 2022 01:40:14 +0100 Subject: tv bu: setup backups --- tv/1systems/bu/disks.nix | 4 ++++ tv/2configs/backup.nix | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/tv/1systems/bu/disks.nix b/tv/1systems/bu/disks.nix index e634209f4..deabefa7b 100644 --- a/tv/1systems/bu/disks.nix +++ b/tv/1systems/bu/disks.nix @@ -4,6 +4,10 @@ device = "buda2/root"; fsType = "zfs"; }; + fileSystems."/bku" = { + device = "buda2/bku"; + fsType = "zfs"; + }; fileSystems."/home" = { device = "buda2/home"; fsType = "zfs"; diff --git a/tv/2configs/backup.nix b/tv/2configs/backup.nix index b8dec8da4..a5e0cf4c7 100644 --- a/tv/2configs/backup.nix +++ b/tv/2configs/backup.nix @@ -10,6 +10,24 @@ with import ; yearly = { format = "%Y"; }; }; }) { + bu-home-wu = { + method = "push"; + src = { host = config.krebs.hosts.bu; path = "/home"; }; + dst = { host = config.krebs.hosts.wu; path = "/bku/bu-home"; }; + startAt = "05:15"; + }; + bu-home-xu = { + method = "push"; + src = { host = config.krebs.hosts.bu; path = "/home"; }; + dst = { host = config.krebs.hosts.xu; path = "/bku/bu-home"; }; + startAt = "05:20"; + }; + bu-home-zu = { + method = "push"; + src = { host = config.krebs.hosts.bu; path = "/home"; }; + dst = { host = config.krebs.hosts.zu; path = "/bku/bu-home"; }; + startAt = "05:25"; + }; nomic-home-xu = { method = "push"; src = { host = config.krebs.hosts.nomic; path = "/home"; }; @@ -40,6 +58,12 @@ with import ; dst = { host = config.krebs.hosts.zu; path = "/bku/wu-home"; }; startAt = "05:20"; }; + xu-home-bu = { + method = "push"; + src = { host = config.krebs.hosts.xu; path = "/home"; }; + dst = { host = config.krebs.hosts.bu; path = "/bku/xu-home"; }; + startAt = "04:50"; + }; xu-home-nomic = { method = "push"; src = { host = config.krebs.hosts.xu; path = "/home"; }; -- cgit v1.2.3