Bug 144564

Summary: Intuitive way to preserve symbolic links
Product: [Fedora] Fedora Reporter: Christopher Beland <beland>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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:
Cloudforms Team: ---

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.