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 | 3a7f6ff1ba4e915625ea56ecede1c019aee468ae (patch) | |
tree | f43d84c82a7cd9dad47ff377006f7ee9a508a4dd | |
parent | 77efd663d9dad5b2b1e42b6593b7fc23415b096c (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 e634209..deabefa 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 b8dec8d..a5e0cf4 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"; }; |