And another replication fix.

This commit is contained in:
2025-10-22 14:22:39 +01:00
parent fa603e8aea
commit 706f46ae77

View File

@@ -122,7 +122,8 @@ in
btrfs subvolume snapshot -r /persist/services "$SNAPSHOT_PATH" btrfs subvolume snapshot -r /persist/services "$SNAPSHOT_PATH"
# Find previous snapshot on sender (sort by name since readonly snapshots have same mtime) # Find previous snapshot on sender (sort by name since readonly snapshots have same mtime)
PREV_LOCAL=$(ls -1 /persist/services@* 2>/dev/null | grep -v "^$SNAPSHOT_PATH$" | sort -r | head -1 || true) # Use -d to list directories only, not their contents
PREV_LOCAL=$(ls -1d /persist/services@* 2>/dev/null | grep -v "^$SNAPSHOT_PATH$" | sort -r | head -1 || true)
# Try incremental send if we have a parent, fall back to full send if it fails # Try incremental send if we have a parent, fall back to full send if it fails
if [ -n "$PREV_LOCAL" ]; then if [ -n "$PREV_LOCAL" ]; then