Ignore NFS primary/standby snapshots for backup.

This commit is contained in:
2025-10-22 13:45:03 +01:00
parent f488b710bf
commit bffc09cbd6

View File

@@ -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