Double quote scp?

Jim Knoble jmknoble at pobox.com
Fri Dec 5 10:26:36 EST 2003


Circa 2003-12-04 14:57:30 -0800 dixit Dan Kaminsky:

: Don't use SCP, it's pretty flaky.
: 
: ssh.com prefers sftp, but I've been grumbling for a scp->tar wrapper.  
: Just do this for now:
: 
: tar cf - <files/directories> | ssh user at host "cd /path && tar xvf -"
: 
: It's more awkward to type, but it's much more reliable.

As long as both the source and the target systems have a 'tar' command
that understands symlinks.  Older BSD tar doesn't, in which case you
need to use something else, like pax, GNU tar, or Joerg Schilling's
star[1].

Or use rsync[2]-over-SSH, which is reliable and is able to restart
aborted transfers (rsync -e ssh -avP sourcefile user at target:/path/).

[1] http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/star.html
[2] http://rsync.samba.org/

-- 
jim knoble  |  jmknoble at pobox.com  |  http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
 .....................................................................
 :"The methods now being used to merchandise the political candidate :
 : as though he were a deodorant positively guarantee the electorate :
 : against ever hearing the truth about anything."   --Aldous Huxley :
 :...................................................................:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 256 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20031204/1981cac7/attachment.bin 


More information about the openssh-unix-dev mailing list