Skip to content

Instantly share code, notes, and snippets.

@otkrsk
Last active July 26, 2016 04:40
Show Gist options
  • Save otkrsk/17312ce962704d740172064fdd8baef6 to your computer and use it in GitHub Desktop.
Save otkrsk/17312ce962704d740172064fdd8baef6 to your computer and use it in GitHub Desktop.
Sometimes you don't have SSH access to a server, or your FTP client is misbehaving (i.e., connects but can't list the directories) and you need to download a whole directory, you can use the following in your terminal.

From the terminal, fire this up:

wget -r ftp://user:[email protected]/<path to your directory>

If you've some special characters in the credentials, you can specify the --user and --password arguments to get it to work.

Example with custom login with specific characters:

wget -r --user="user@login" --password="Pa$$wo|^D" ftp://server.com/<path to your directory>

Be sure to be in the directory on your local machine that you want these files to be copied to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment