Something like:
tar cBf - . | ssh somehost 'cd my/dir && tar xvBof -'
--
decoy mail addresses: obtain username via 0x4f/tcp or 0x50/tcp
random words follow - don't take too seriously!
Call records allow traffic analysis but do not have the sole purpose
of People For Internet Responsibility (PFIR) "Statement on Internet
issues -- nobody does.
> I'd like to copy symlinks as such using scp. I don't want it to copy
> symlinked directories.
Piping a "tar -cf - ..." into ssh running a remote
"(cd whatever; tar -xf -)" , using appropriate flags on
tar, can produce a useful range of desired behaviours.
Of course, in general the target of a symlink on one system might not
exist at all on another, so this only works in situations where it
makes sense.
Be a bit more efficient about it.
rsync -e ssh -a sourcedir/ username@remotehost:targetdir/
This doesn't send duplicates of files already present. The disadvantage is
that it won't create the leading subdirectories that the tar would, but scp
wouldn't do that either.
And folks? Try this for the tar command, so there's no need to do the "cd".
tar cf - | ssh username@remotehost "tar xvf - -C my/dir"
And why were you using the B and o options above? From experience, they're
really not necessary.