- Forum
- Usenet
- COMP.SECURITY.SSH
-
Support for --parents (like cp from coreutils) in scp
Hello,
is it possible to copy via scp a file from a subdirectory and have the same subdirectory be created on the remote side ?
'cp' supports this via
"cp --parents dir/file dst"
which creates dst/dir before copying the file. Just doing
"scp dir remote:dst"
is not the same thing if there are other files/subdirs in dir/ that I don't want copied to the remote side.
Can I create the dst/dir path in one go, without having to log in via ssh and 'mkdir dst/dir' first ?
Thanks.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)