How to download a directory and its contents using PSFTP?

6

1

I'm using PSFTP and am looking to download two directories and all of their subdirectories and place them else where on my server.

I would think it would be as simple as

get dirname c:\localdirname
get dirname2 c:\localdirname2

But I get read permission errors, however, if I specify one file at a time, it works. Any ideas?

Dave

Posted 2011-06-29T17:33:24.497

Reputation: 207

1I was able to figure it out. LCD to the local directory I want to save to, cd to the remote directory I need, then use mget * – Dave – 2011-06-29T17:54:00.033

Answers

13

Use get -r <dirname>.

To move directories within the same server, you can also use mv <oldname> <newname>.

user1686

Posted 2011-06-29T17:33:24.497

Reputation: 283 655