stockholm/krebs/2configs/backup.nix
2017-07-22 21:59:00 +02:00

22 lines
608 B
Nix

{ 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";
};
};
}