rsync icon indicating copy to clipboard operation
rsync copied to clipboard

Add independent update mode for symbolic links

Open twojstaryzdomu opened this issue 3 years ago • 3 comments

This PR enhances rsync with an independent update mode for symbolic links. Its main purpose is to skip symlinks that are newer on the receiver. The mode is enabled independently of the update mode via the --update-links switch. To extend the behaviour of this option to empty directories, an additional --allow-link-update-dir switch may be enabled. In this mode, a less recent empty directory on the destination may be replaced with a more recent symbolic link from the source. The PR includes a sanity test to verify the impact of the proposed modes on a set of files (relative, dangling, absolute, unsafe, devlink dirlink, empty directory, non-empty directory, fifo) under different circumstances.

twojstaryzdomu avatar Jul 03 '21 18:07 twojstaryzdomu

The test included in the PR needs further work to run on FreeBSD apparently.

twojstaryzdomu avatar Jul 03 '21 18:07 twojstaryzdomu

I'll note that tweaking .github/workflows/build.yml to include coreutils on the brew install line should hopefully be enough to fix the test error on macOS.

WayneD avatar Jan 03 '22 06:01 WayneD

I'll note that tweaking .github/workflows/build.yml to include coreutils on the brew install line should hopefully be enough to fix the test error on macOS.

Noted and added it in commit c3437c1. The workflow change now awaits approval.

twojstaryzdomu avatar Jan 08 '22 15:01 twojstaryzdomu