From bffc09cbd6acc0f3662bc2278a04b9fe2b91cb75 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 22 Oct 2025 13:45:03 +0100 Subject: [PATCH] Ignore NFS primary/standby snapshots for backup. --- common/global/backup.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/global/backup.nix b/common/global/backup.nix index 8db579f..0e428e3 100644 --- a/common/global/backup.nix +++ b/common/global/backup.nix @@ -21,7 +21,11 @@ let ${btrfs} subvolume snapshot -r "$target_path" "$snapshot_path" # --no-send-snapshot-path due to https://github.com/kopia/kopia/issues/4402 - ${kopia} snapshot create --no-send-snapshot-report --override-source "$target_path" -- "$snapshot_path" + # Exclude btrfs replication snapshots (they appear as empty dirs in the snapshot anyway) + ${kopia} snapshot create --no-send-snapshot-report --override-source "$target_path" \ + --ignore "services@*" \ + --ignore "services-standby/services@*" \ + -- "$snapshot_path" ${btrfs} subvolume delete "$snapshot_path" ${kopia} repository disconnect