Skip to content

Support per-directory relative alt-dest paths#1016

Open
culpen90 wants to merge 1 commit into
RsyncProject:masterfrom
culpen90:changes/per-dir-alt-dest
Open

Support per-directory relative alt-dest paths#1016
culpen90 wants to merge 1 commit into
RsyncProject:masterfrom
culpen90:changes/per-dir-alt-dest

Conversation

@culpen90

Copy link
Copy Markdown

Summary

  • Add an opt-in per-directory relative form for --compare-dest, --copy-dest, and --link-dest using a : prefix.
  • Route generator, receiver, hard-link, and fuzzy basis lookups through shared alt-dest path construction.
  • Document the new form and add regression coverage for link, copy, compare, and fuzzy behavior.

Details

Relative alt-dest paths continue to resolve from the destination root by default. When a relative alt-dest argument begins with : , the remaining path is resolved from each destination file's containing directory, matching the behavior requested in issue #58 while preserving existing backup workflows that rely on destination-root-relative paths.

Tests

  • make -j8
  • ./runtests.py alt-dest-per-dir --rsync-bin=$(pwd)/rsync --timeout 120 --always-log
  • ./runtests.py alt-dest alt-dest-deep fuzzy --rsync-bin=$(pwd)/rsync --timeout 120
  • ./runtests.py alt-dest-per-dir --rsync-bin=$(pwd)/rsync --protocol=29 --timeout 120

@culpen90 culpen90 marked this pull request as ready for review June 23, 2026 16:02
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