Am 24.11.2012 22:42, schrieb Marko Vojinovic:
However, your problem seems to be in the circular links in the
source /home/bobg/. Somewhere under the directory tree, there is
probably a soft link pointing to its own parent directory (or several
levels up). Since scp follows symbolic links (read about -r option in
man scp), it gets into a loop, copying one directory subtree over and
over and over. Apparently scp lacks an option to disable following
symbolic links, so there is no easy way to fix this.
htaht is why i suggested to use rsync with the --links
option, this will copy links as links and is the better
solution as scp because both are running over ssh but
rsync is much more fexilble and can cover any type of
links and attributes