summaryrefslogtreecommitdiffstats
path: root/tv/2configs/backup.nix
blob: 4b31bc844b8af45869befe35a6a33641efa2a69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }:
with lib;
{
  krebs.backup.plans = addNames {
    xu-test-cd = {
      method = "push";
      src = { host = config.krebs.hosts.xu; path = "/tmp/xu-test"; };
      dst = { host = config.krebs.hosts.cd; path = "/tmp/backups/xu-test"; };
    };
    #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"; };
    };

  };
}