krebs: init backup.nix

This commit is contained in:
lassulus 2017-07-22 21:59:00 +02:00
parent 06f2f92476
commit f4a192f5f8
2 changed files with 24 additions and 0 deletions

21
krebs/2configs/backup.nix Normal file
View File

@ -0,0 +1,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";
};
};
}

View File

@ -2,6 +2,9 @@
with import <stockholm/lib>;
{
imports = [
./backup.nix
];
krebs.enable = true;
krebs.tinc.retiolum.enable = true;