Pro / raspi-toolchain

169 stars 40 forks source link

rsync arguments contradictions #13

Open Alexander-Degtyar opened 2 years ago

Alexander-Degtyar commented 2 years ago

https://github.com/Pro/raspi-toolchain/blob/87b08f1712c0dab1f6a142e3b32acece17283ac0/README.md?plain=1#L83

rsync usage example in the readme file uses -R (--relative) and --safe-links together. But manual for --safe-links notes the following:

Using this option in conjunction with --relative may give unexpected results.

Full manual for both options

-R, --relative Use relative paths. This means that the full path names specified on the command line are sent to the server rather than just the last parts of the filenames. This is particularly useful when you want to send several different directories at the same time.

--safe-links This tells rsync to ignore any symbolic links which point outside the copied tree. All absolute symlinks are also ignored. Using this option in conjunction with --relative may give unexpected results.