summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/backup.nix
blob: 7ee4387849692794b7ad0386d3e08a47786e2949 (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 import <stockholm/lib>;
{
  krebs.backup.plans = {
  } // mapAttrs (_: recursiveUpdate {
    snapshots = {
      daily    = { format = "%Y-%m-%d"; retain =  7; };
      weekly   = { format = "%YW%W";    retain =  4; };
      monthly  = { format = "%Y-%m";    retain = 12; };
      yearly   = { format = "%Y";                    };
    };
  }) {
    wolf-share-puyak = {
      method = "pull";
      src = { host = config.krebs.hosts.wolf;  path = "/home/share"; };
      dst = { host = config.krebs.hosts.puyak; path = "/bku/wolf-share"; };
      startAt = "03:00";
    };
  };
}