Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsync arguments contradictions #13

Open
Alexander-Degtyar opened this issue Nov 24, 2021 · 0 comments
Open

rsync arguments contradictions #13

Alexander-Degtyar opened this issue Nov 24, 2021 · 0 comments

Comments

@Alexander-Degtyar
Copy link

rsync -vR --progress -rl --delete-after --safe-links [email protected]:/{lib,usr,etc/ld.so.conf.d,opt/vc/lib} $HOME/rpi/rootfs

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.

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

No branches or pull requests

1 participant