diff options
author | tv <tv@krebsco.de> | 2016-01-05 22:35:05 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-01-05 22:52:35 +0100 |
commit | c9a0791bcd5c7ea1de0baec4a373d9a70522859a (patch) | |
tree | c42345361594382c67d4d68da9f04196ee183c48 /tv/2configs | |
parent | d6dcc7972d0a86f6de09558cf93f35f4cdd6d3a4 (diff) |
tv backup: wu:/home → xu:/bku/wu-home @ 05:00
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/backup.nix | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/tv/2configs/backup.nix b/tv/2configs/backup.nix index 4b31bc8..ce937a7 100644 --- a/tv/2configs/backup.nix +++ b/tv/2configs/backup.nix @@ -2,20 +2,17 @@ with lib; { krebs.backup.plans = addNames { - xu-test-cd = { + wu-home-xu = { method = "push"; - src = { host = config.krebs.hosts.xu; path = "/tmp/xu-test"; }; - dst = { host = config.krebs.hosts.cd; path = "/tmp/backups/xu-test"; }; + src = { host = config.krebs.hosts.wu; path = "/home"; }; + dst = { host = config.krebs.hosts.xu; path = "/bku/wu-home"; }; + startAt = "05:00"; + snapshots = { + daily = { format = "%Y-%m-%d"; retain = 7; }; + weekly = { format = "%YW%W"; retain = 4; }; + monthly = { format = "%Y-%m"; retain = 12; }; + yearly = { format = "%Y"; }; + }; }; - #xu-test-wu = { - # method = "push"; - # dst = { user = tv; host = wu; path = "/krebs/backup/xu-test"; }; - #}; - cd-test-xu = { - method = "pull"; - src = { host = config.krebs.hosts.cd; path = "/tmp/cd-test"; }; - dst = { host = config.krebs.hosts.xu; path = "/tmp/backups/cd-test"; }; - }; - }; } |