• Support for --parents (like cp from coreutils) in scp

    From harjoc@gmail.com@21:1/5 to All on Thu Mar 28 05:44:42 2019
    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)