Skip to content

fix(remote): hub path quoting and Windows SCP merge for satellite push - #6

Open
andrew05060414 wants to merge 3 commits into
byteowlz:mainfrom
andrew05060414:pr/remote-sync-hub-paths
Open

fix(remote): hub path quoting and Windows SCP merge for satellite push#6
andrew05060414 wants to merge 3 commits into
byteowlz:mainfrom
andrew05060414:pr/remote-sync-hub-paths

Conversation

@andrew05060414

Copy link
Copy Markdown

Summary

  • Fix remote hub path handling when database_path contains spaces (SSH test -f / eval echo quoting)
  • Fix Windows OpenSSH SCP fetch/push for spaced paths (single argv element; no host:'/path' quoting)
  • Abort push when fetched hub DB is unexpectedly small (prevents silent overwrite)
  • Add docs/remote-sync.md and link from README

Depends on

  • Merge sync device_id PR first (this branch rebases cleanly on main for review, but sync_to_remote expects device_namespace from that change)

Test plan

  • Hub at path with spaces; satellite push merges instead of replacing
  • Windows satellite: fetch hub, merge, push; verify both device prefixes on hub
  • cargo test -p hstry-core remote::tests

Shell-escape remote database paths for file_exists, SCP, and path expansion so satellite push fetches the hub before merging. Document database_path and serial push requirements for Win/Mac NAS satellites.
Pass SCP remote paths as a single argv element (no shell quotes on Windows). Abort push when a fetched hub file is unexpectedly small. Keeps SSH shell quoting for file_exists and path expansion.
Document satellite push merge behavior, database_path, spaced paths, and verification. Link from README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant