krebs: init backup.nix
This commit is contained in:
parent
06f2f92476
commit
f4a192f5f8
21
krebs/2configs/backup.nix
Normal file
21
krebs/2configs/backup.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
with import <stockholm/lib>;
|
||||
{
|
||||
imports = [
|
||||
./backup.nix
|
||||
];
|
||||
krebs.enable = true;
|
||||
krebs.tinc.retiolum.enable = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user