scp and symlinks
Kurt Wall
kwall
Sat Nov 20 07:23:55 PST 2004
On Sat, Nov 20, 2004 at 11:05:54AM +0000, Jorge Almeida took 15 lines to write:
> Hi,
>
> I just found out that scp resolves symlinks and the man page doesn't
> mention it.
> I would like to copy symlinks as symlinks. Does anyone know of a
> workaround or undocumented feature?
A workaround is to use rsync:
rsync -r -e ssh path user at host:/path
rsync -r -e ssh user at host:/path path
-r tells rsync to recurse into directovies. -e ssh specifies the remote
shell (ssh in this case) for rsync to use.
Kurt
--
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy
More information about the Linux-users
mailing list