From 19cdd825af3f13560d3d5cd4152b3961fb21fb93 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 22 Jan 2025 23:25:04 +0000 Subject: [PATCH] remove pihole and bitcoind from restic backup --- hosts/common/optional/nixos-containers/nix-bitcoin.nix | 5 ++++- hosts/common/optional/nixos-containers/pihole.nix | 8 -------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/hosts/common/optional/nixos-containers/nix-bitcoin.nix b/hosts/common/optional/nixos-containers/nix-bitcoin.nix index 8946f1d..93f16f1 100644 --- a/hosts/common/optional/nixos-containers/nix-bitcoin.nix +++ b/hosts/common/optional/nixos-containers/nix-bitcoin.nix @@ -20,7 +20,10 @@ in { daily = { paths = [ bitcoinNodeContainerData - bitcoindData + ]; + exclude = [ + "${bitcoindData}" + "${bitcoinNodeContainerData}/electrs" ]; }; }; diff --git a/hosts/common/optional/nixos-containers/pihole.nix b/hosts/common/optional/nixos-containers/pihole.nix index edcc740..96c5ed2 100644 --- a/hosts/common/optional/nixos-containers/pihole.nix +++ b/hosts/common/optional/nixos-containers/pihole.nix @@ -16,14 +16,6 @@ in { networking.nat.internalInterfaces = ["ve-+"]; networking.nat.externalInterface = "br0"; - services.restic.backups = { - daily = { - paths = [ - piholeContainerData - ]; - }; - }; - environment.persistence."/persist" = { hideMounts = true; directories = [