From f6ed1c1393a20cdbf95133b08d1a90a086c2baa7 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Sun, 15 Mar 2026 19:59:58 -0400 Subject: [PATCH] temporary fix to make sure sites are getting backed up --- hosts/nixos/HandlerOne/backup.nix | 77 +++++++++++++++++++++++-------- 1 file changed, 58 insertions(+), 19 deletions(-) diff --git a/hosts/nixos/HandlerOne/backup.nix b/hosts/nixos/HandlerOne/backup.nix index af5deef..a98fee2 100644 --- a/hosts/nixos/HandlerOne/backup.nix +++ b/hosts/nixos/HandlerOne/backup.nix @@ -6,27 +6,27 @@ let OnCalendar = "hourly"; Persistent = true; }; - paths = [ - # Pocket-ID - "/var/lib/pocket-id" - "/var/lib/forgejo" - "/var/lib/mealie" + # paths = [ + # # Pocket-ID + # "/var/lib/pocket-id" + # "/var/lib/forgejo" + # "/var/lib/mealie" - # lubelogger.nix - "${volumePath}/lubelogger" + # # lubelogger.nix + # "${volumePath}/lubelogger" - # trilium.nix - "/var/lib/trilium/backup" + # # trilium.nix + # "/var/lib/trilium/backup" - # actualbudget - "${volumePath}/actualbudget" + # # actualbudget + # "${volumePath}/actualbudget" - "/var/lib/tuwunel" - "/var/lib/paperless/export" - "/var/lib/octoprint" - "/var/lib/komga" + # "/var/lib/tuwunel" + # "/var/lib/paperless/export" + # "/var/lib/octoprint" + # "/var/lib/komga" - ]; + # ]; }; in { @@ -47,8 +47,29 @@ in borg-base = restic-default // { repositoryFile = config.sops.secrets."restic/borg-base/url".path; passwordFile = config.sops.secrets."restic/borg-base/key".path; + paths = [ + # Pocket-ID + "/var/lib/pocket-id" + "/var/lib/forgejo" + "/var/lib/mealie" + + # lubelogger.nix + "${volumePath}/lubelogger" + + # trilium.nix + "/var/lib/trilium/backup" + + # actualbudget + "${volumePath}/actualbudget" + + "/var/lib/tuwunel" + "/var/lib/paperless/export" + "/var/lib/octoprint" + "/var/lib/komga" + + ]; }; - hetzner-handlerone = { + hetzner-handlerone = restic-default // { initialize = true; extraOptions = [ "sftp.args='-i /etc/ssh/ssh_host_ed25519_key -p 23'" @@ -60,8 +81,26 @@ in "${volumePath}/flamesites/nnsbluegrass" "/home/crow/swgalaxysite/public_html" "/home/crow/flamebandsite/public_html" + # Pocket-ID + "/var/lib/pocket-id" + "/var/lib/forgejo" + "/var/lib/mealie" + + # lubelogger.nix + "${volumePath}/lubelogger" + + # trilium.nix + "/var/lib/trilium/backup" + + # actualbudget + "${volumePath}/actualbudget" + + "/var/lib/tuwunel" + "/var/lib/paperless/export" + "/var/lib/octoprint" + "/var/lib/komga" + ]; - } - // restic-default; + }; }; }