SCP problem -

Marko Vojinovic vvmarko at gmail.com
Sat Nov 24 22:02:15 UTC 2012


On Sat, 24 Nov 2012 22:47:20 +0100
Reindl Harald <h.reindl at thelounge.net> wrote:

> 
> 
> 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

Yes, rsync is probably the best tool for the job in this case.

But anyway, I sometimes wonder how come that scp doesn't have an option
to disable symbolic links. It's an obvious thing to have, precisely for
these purposes...

Best, :-)
Marko




More information about the users mailing list