scp
Jim Knoble
jmknoble at pobox.com
Tue Oct 15 06:25:47 EST 2002
Circa 2002-10-14 14:25:22 -0500 dixit Ladner, Eric (Eric.Ladner):
: Or to copy sym links as sym links and not the file they point to.
You must mean rsync ( http://rsync.samba.org/ ). 'rsync -l' copies
symlinks as symlinks, while 'rsync -a' copies device files, owners,
permissions, and datestamps in addition.
: -----Original Message-----
: From: Douglas Boldt [mailto:doug at endai.com]
: Sent: Saturday, October 12, 2002 3:52 PM
: To: openssh-unix-dev at mindrot.org
: Subject: scp
:
: I would absolutely love a flag in scp to ignore sym-links.
Douglas, you'll probably get more mileage out of rsync than scp for
doing this. If you merely don't want to copy symlinks because they
take too much time to copy, then 'rsync -a' will handle that
automatically; it doesn't copy something it doesn't have to.
If, instead, you wish to exclude symlinks that point outside of the
directory tree you're copying, use rsync's '--safe-links' option.
If you really don't want to copy any symlinks, you'll need to wrap some
scripting around 'find <dir> -type l' together with
'rsync -a --exclude-from=<file>'.
Good luck to both of you.
--
jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
"I am non-refutable." --Enik the Altrusian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 262 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20021014/4a4b8948/attachment.bin
More information about the openssh-unix-dev
mailing list