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

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .