Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.SECURITY.SSH
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)
Who's Online
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
450
Nodes:
16 (
2
/
14
)
Uptime:
83:12:32
Calls:
9,267
Files:
13,505
Messages:
6,069,526