From 895e1365d9a3655450427202a53ef3fc2a3f1e37 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 12 Feb 2024 22:48:53 +0100 Subject: [PATCH] exclude media library from borg backups --- nixos/modules/backups.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/backups.nix b/nixos/modules/backups.nix index 3abf6b1..47e3128 100644 --- a/nixos/modules/backups.nix +++ b/nixos/modules/backups.nix @@ -19,6 +19,8 @@ let label: nfs - path: ssh://s6969ym3@s6969ym3.repo.borgbase.com/./repo label: ec2 + exclude_patterns: + - ${cfg.snapshotLocation}/media ssh_command: "${pkgs.openssh}/bin/ssh -i ${config.age.secrets."ec2_borg_server.pem".path} -o StrictHostKeychecking=no" keep_daily: 7 keep_weekly: 4