diff options
| author | tv <tv@krebsco.de> | 2022-01-05 01:40:14 +0100 | 
|---|---|---|
| committer | tv <tv@krebsco.de> | 2022-01-05 04:04:52 +0100 | 
| commit | c4ff9f0d26e7fce7d83d076dda5445801cca6676 (patch) | |
| tree | e5935e22d5f7755328aa04c6e7514d847ac64e80 | |
| parent | 77d17636b1e0e46b1c7712fa543be20c51946add (diff) | |
tv bu: setup backups
| -rw-r--r-- | tv/1systems/bu/disks.nix | 4 | ||||
| -rw-r--r-- | tv/2configs/backup.nix | 24 | 
2 files changed, 28 insertions, 0 deletions
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 <stockholm/lib>;        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 <stockholm/lib>;        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"; };  | 
