From 8bb710bfd6dd4c3181fcea54c0409beb1ca28d35 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 6 Jan 2023 18:18:00 +0100 Subject: [PATCH] Move the excludes.txt to a general directory --- modules/restic-client-desktop/default.nix | 2 +- modules/restic-client-server-mysql/default.nix | 2 +- modules/restic-client-server-postgres/default.nix | 2 +- modules/restic-client-server/default.nix | 2 +- modules/{restic-client-desktop => restic-client}/excludes.txt | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename modules/{restic-client-desktop => restic-client}/excludes.txt (100%) diff --git a/modules/restic-client-desktop/default.nix b/modules/restic-client-desktop/default.nix index 4fec04c..fac8d2a 100644 --- a/modules/restic-client-desktop/default.nix +++ b/modules/restic-client-desktop/default.nix @@ -83,7 +83,7 @@ in onFailure = [ "unit-status-telegram@%n.service" ]; script = '' ${pkgs.restic}/bin/restic \ - --exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \ + --exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \ --tag home-dir \ backup /home/${custom.username} diff --git a/modules/restic-client-server-mysql/default.nix b/modules/restic-client-server-mysql/default.nix index e0a882a..d93e4b8 100644 --- a/modules/restic-client-server-mysql/default.nix +++ b/modules/restic-client-server-mysql/default.nix @@ -30,7 +30,7 @@ onFailure = [ "unit-status-telegram@%n.service" ]; script = '' ${pkgs.restic}/bin/restic backup \ - --exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \ + --exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \ --tag ${tag} ${path} ${pkgs.mariadb}/bin/mariabackup --backup --stream=xbstream | \ diff --git a/modules/restic-client-server-postgres/default.nix b/modules/restic-client-server-postgres/default.nix index b9bbff3..345a817 100644 --- a/modules/restic-client-server-postgres/default.nix +++ b/modules/restic-client-server-postgres/default.nix @@ -30,7 +30,7 @@ onFailure = [ "unit-status-telegram@%n.service" ]; script = '' ${pkgs.restic}/bin/restic backup \ - --exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \ + --exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \ --tag ${tag} ${path} ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dumpall | \ diff --git a/modules/restic-client-server/default.nix b/modules/restic-client-server/default.nix index 54fdbbc..b316ff4 100644 --- a/modules/restic-client-server/default.nix +++ b/modules/restic-client-server/default.nix @@ -30,7 +30,7 @@ onFailure = [ "unit-status-telegram@%n.service" ]; script = '' ${pkgs.restic}/bin/restic backup \ - --exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \ + --exclude-file=${custom.inputs.self}/modules/restic-client/excludes.txt \ --tag ${tag} ${path} ${pkgs.restic}/bin/restic forget \ diff --git a/modules/restic-client-desktop/excludes.txt b/modules/restic-client/excludes.txt similarity index 100% rename from modules/restic-client-desktop/excludes.txt rename to modules/restic-client/excludes.txt