stockholm/krebs/2configs/backup.nix

22 lines
589 B
Nix
Raw Permalink Normal View History

2017-07-22 19:59:00 +00:00
{ config, lib, ... }:
2023-06-10 10:50:53 +00:00
with lib;
2017-07-22 19:59:00 +00:00
{
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";
};
};
}