Re: scp ignore symlinks

From: Alan J. Flavell (flavell@mail.cern.ch)
Date: 11/30/02


From: "Alan J. Flavell" <flavell@mail.cern.ch>
Date: Sat, 30 Nov 2002 13:36:50 +0100

On Nov 30, J.M.Roth inscribed on the eternal scroll:

> I'd like to copy symlinks as such using scp. I don't want it to copy
> symlinked directories.

Piping a "tar -cf - ..." into ssh running a remote
"(cd whatever; tar -xf -)" , using appropriate flags on
tar, can produce a useful range of desired behaviours.

Of course, in general the target of a symlink on one system might not
exist at all on another, so this only works in situations where it
makes sense.



Relevant Pages

  • Re: [UML] Compile error when building with seperate source and object directories
    ... symlinks (symlink in question is still created - it's needed for other ... relationship between target and build environment anymore - we pick all ... That's it - none of the helpers depends on build and target being the ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: find v/s ls ?
    ... > It also lists symbolic links. ... although symlinks won't be printed if the target does not ... these only print regular files. ...
    (comp.unix.questions)
  • Re: find v/s ls ?
    ... > It also lists symbolic links. ... although symlinks won't be printed if the target does not ... these only print regular files. ...
    (comp.unix.shell)
  • [PATCH 4/8] sysfs: implement symlink auto-removal
    ... automatically remove all symlinks ... pointing to it together. ... Note that as links created with kobject based sysfs_create_link ... aren't chained on its target, ...
    (Linux-Kernel)
  • Re: multiple groups & soft/hard links
    ... | to change the permission of the soft link the target itself is modified. ... they invented symlinks for UNIX, in their zeal to make symlinks look ...
    (RedHat)