feat(restic): update restic config

This commit is contained in:
Felix Schröter 2021-08-04 22:27:47 +02:00
parent 4472bf76dc
commit 07fa38bdf8
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 5 additions and 3 deletions

View file

@ -3,4 +3,3 @@
{ {
xdg.configFile."monitors.xml".source = ./monitors.xml; xdg.configFile."monitors.xml".source = ./monitors.xml;
} }

View file

@ -1,8 +1,11 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# using the restic cli:
# load credentials into shell via: export $(cat /path/to/credentials/file | xargs)
# useful commands for analysing restic stats [snapshot-id], restic diff [s1] [s2],
with lib; with lib;
with builtins; with builtins;
let let
hasAnyAttr = flip (attrset: any (flip hasAttr attrset)); hasAnyAttr = flip (attrset: any (flip hasAttr attrset));
@ -52,9 +55,9 @@ in {
"/var/lib/syncthing" "/var/lib/syncthing"
"/var/lib/jellyfin" "/var/lib/jellyfin"
"/var/lib/owntracks" "/var/lib/owntracks"
"/var/lib/owntracks-recorder"
]; ];
timerConfig = { OnCalendar = "hourly"; }; timerConfig = { OnCalendar = "hourly"; };
extraPruneOpts = [ "--keep-hourly 24" ]; extraPruneOpts = [ "--keep-hourly 24" ];
extraOptions = [ "--exclude=/var/lib/jellyfin/transcodes" ];
}; };
} }