I want to rsync a folder to another folder without copying links. When I do this and the origin folder contains a symbolic link to a directory, I get the following error message:
skipping non-regular file "FOLDER"
(The error message does not actually cause rsync to stop but I prefer not to receive error messages when a program is behaving as I expect.)
Here is an example (which creates test/ and rsyncs to test2/):
mkdir -p test/subdir/subsubdir/ ln -s "$(pwd)"/test/subdir/subsubdir test/subdir/subsubdir_link rsync -a --no-l test/ test2/
Additionally, the following rsync command (where I give the options in -a except for -l and -D) also give the error message:
rsync -rptgo test/ test3/
Is there some way to prevent this behaviour within rsync?