Bug 144564 - Intuitive way to preserve symbolic links
Summary: Intuitive way to preserve symbolic links
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Brian Brock
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2005-01-08 12:44 UTC by Christopher Beland
Modified: 2007-11-30 22:10 UTC (History)
0 users

Clone Of:
Last Closed: 2005-02-10 10:28:34 UTC

Attachments (Terms of Use)

Description Christopher Beland 2005-01-08 12:44:40 UTC

It would be handy if scp took an argument similar to cp's
--no-dereference, to allow it to preserve symbolic links.  That way,
it'd be easy to replicate a directory/file structure with links
intact, from machine to machine.

Currently, you have to do something like the following (arguably
non-intuititve, certainly less convenient) workaround.

tar -cf - /source | ssh hostname.domain tar -xf - -C /destination

Comment 1 Sitsofe Wheeler 2005-01-08 18:07:41 UTC
Or use rsync...

Comment 2 keith adamson 2005-01-09 00:20:45 UTC
as in ...

rsync -avze ssh \
    username@hostname:/name/of/directory/to/copy/from/ \

or ...

rsync -avze ssh \
    /name/of/directory/to/copy/from/ \

rsync is great!!    

Comment 3 Tomas Mraz 2005-02-10 10:28:34 UTC
Sorry but this was rejected upstream as it would break the rcp/scp
protocol. Use sftp or rsync.

Note You need to log in before you can comment on or make changes to this bug.