From 04332f9a9eb41a258b5a76c2f6eb5314d972b0bf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 19 Jan 2023 17:57:09 -0800 Subject: ref(hosts/tahoe): exclude more paths from backups --- hosts/tahoe/services.nix | 7 +++++++ modules/services/grafana/default.nix | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix index ff476c5..3c47417 100644 --- a/hosts/tahoe/services.nix +++ b/hosts/tahoe/services.nix @@ -57,8 +57,15 @@ in "/home" ]; exclude = [ + # nothing worth backing up on this machine in this location "/home/fcuny/.cache" + "/home/fcuny/.local" + + # I might have media in this folder, and I don't want them to + # be backuped up "/home/fcuny/import" + + # If it's something I care about it will be moved to /data "/home/fcuny/media/videos" ]; }; diff --git a/modules/services/grafana/default.nix b/modules/services/grafana/default.nix index 46e75e1..84bd577 100644 --- a/modules/services/grafana/default.nix +++ b/modules/services/grafana/default.nix @@ -67,7 +67,10 @@ in my.services.backup = { paths = [ "/var/lib/grafana" ]; - exclude = [ "/var/lib/grafana/log/" ]; + exclude = [ + "/var/lib/grafana/data/log/" + "/var/lib/grafana/log/" + ]; }; }; } -- cgit 1.4.1