Bug 144564 - Intuitive way to preserve symbolic links
Intuitive way to preserve symbolic links
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: openssh (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Brian Brock
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-08 07:44 EST by Christopher Beland
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-02-10 05:28:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Christopher Beland 2005-01-08 07:44:40 EST
openssh-clients-3.9p1-7

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 13:07:41 EST
Or use rsync...
Comment 2 keith adamson 2005-01-08 19:20:45 EST
as in ...

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

or ...

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

rsync is great!!    
Comment 3 Tomas Mraz 2005-02-10 05:28:34 EST
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.