diff options
author | tv <tv@krebsco.de> | 2016-02-13 17:56:59 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-13 17:56:59 +0100 |
commit | 93b855971767db02e3be4584b24186510a78a214 (patch) | |
tree | 42678af8f00932f0bcdd1858e6299af41ca52f5a /tv | |
parent | 0a6a96d8cb5bce4236416c374cd4b49372308d43 (diff) |
tv backup: add xu-test-*
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/backup.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tv/2configs/backup.nix b/tv/2configs/backup.nix index 6c90709..57f299e 100644 --- a/tv/2configs/backup.nix +++ b/tv/2configs/backup.nix @@ -26,5 +26,28 @@ with lib; yearly = { format = "%Y"; }; }; }; + } // mapAttrs (_: recursiveUpdate { + snapshots = { + minutely = { format = "%Y-%m-%dT%H:%M"; retain = 3; }; + hourly = { format = "%Y-%m-%dT%H"; retain = 3; }; + daily = { format = "%Y-%m-%d"; retain = 3; }; + }; + startAt = null; + }) { + xu-test-push-xu = { + method = "push"; + src = { host = config.krebs.hosts.xu; path = "/tmp/xu-bku-test-data"; }; + dst = { host = config.krebs.hosts.xu; path = "/bku/xu-test-push"; }; + }; + xu-test-pull-xu = { + method = "pull"; + src = { host = config.krebs.hosts.xu; path = "/tmp/xu-bku-test-data"; }; + dst = { host = config.krebs.hosts.xu; path = "/bku/xu-test-pull"; }; + }; + xu-test-push-wu = { + method = "push"; + src = { host = config.krebs.hosts.xu; path = "/tmp/xu-bku-test-data"; }; + dst = { host = config.krebs.hosts.wu; path = "/bku/xu-test-push"; }; + }; }; } |