From 07fa38bdf8f968d2b1dee5ffe4806463dfac0965 Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Wed, 4 Aug 2021 22:27:47 +0200 Subject: [PATCH] feat(restic): update restic config --- home/desktop/monitors.nix | 1 - services/restic/rpi4.nix | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/home/desktop/monitors.nix b/home/desktop/monitors.nix index 379eb03..23373e5 100644 --- a/home/desktop/monitors.nix +++ b/home/desktop/monitors.nix @@ -3,4 +3,3 @@ { xdg.configFile."monitors.xml".source = ./monitors.xml; } - diff --git a/services/restic/rpi4.nix b/services/restic/rpi4.nix index b2a2ef1..da4a2d8 100644 --- a/services/restic/rpi4.nix +++ b/services/restic/rpi4.nix @@ -1,8 +1,11 @@ { 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 builtins; - let hasAnyAttr = flip (attrset: any (flip hasAttr attrset)); @@ -52,9 +55,9 @@ in { "/var/lib/syncthing" "/var/lib/jellyfin" "/var/lib/owntracks" - "/var/lib/owntracks-recorder" ]; timerConfig = { OnCalendar = "hourly"; }; extraPruneOpts = [ "--keep-hourly 24" ]; + extraOptions = [ "--exclude=/var/lib/jellyfin/transcodes" ]; }; }