Sunday, 22 December 2019

linux - How do I get an entire directory in sftp?


I'm just learning to use sftp, and I want to copy a directory from the remote computer to my local computer. If I try


get [directory]

it gives me this error:


Cannot download non-regular file: /home/mpirocch/Documents

get -R doesn't work, either.



Answer



Use the -r (recursive) flag:


get -r *

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...