scp problem (openssh-2.9p2)

Jim Knoble jmknoble at pobox.com
Tue Jul 10 01:47:27 EST 2001


Circa 2001-Jul-09 07:02:13 -0700 dixit Dan Kaminsky:

: > scp does not preserve links (neither soft neither hard)
: 
:     Play around with the following command:
: 
:     tar -cf - <files/directories> | ssh user at host 'tar -C
: destination_path -xvf -'

Or use rsync:

  http://freshmeat.net/projects/rsync/

'rsync -a' copies recursively and preserves symlinks, times, and
permissions, and ownership too if you're privileged.

-- 
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/
           | jmknoble at pobox.com   | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 249 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010709/990e01ee/attachment.bin 


More information about the openssh-unix-dev mailing list