How to download a directory and its contents using PSFTP?

22,140

Use get -r <dirname>.

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

Share:
22,140

Related videos on Youtube

Dave
Author by

Dave

Updated on September 18, 2022

Comments

  • Dave
    Dave over 1 year

    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?

    • Admin
      Admin almost 13 years
      I 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 *