I want to copy all files with extension *out to my local machine form my account keeping the same tree path of each file my trail is
scp --parents -r @remote:~/path/*out ./
such trail doesn't work
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
rsync is a little more dependable.
It does recursion and creates directories galore. scp is capable of all these things too which I think you are already doing it. But if the parent directories don't exist on the local machine you just have to use the necessary parameters in scp to do that.