I’m trying to ftp a folder using the command line ftp client, but so far I’ve only been able to use ‘get’ to get individual files.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could rely on wget which usually handles ftp get properly (at least in my own experience). For example:
You can also use
-mwhich is suitable for mirroring. It is currently equivalent to-r -N -l inf.If you’ve some special characters in the credential details, you can specify the
--userand--passwordarguments to get it to work. Example with custom login with specific characters:As pointed out by @asmaier, watch out that even if
-ris for recursion, it has a default max level of 5:If you don’t want to miss out subdirs, better use the mirroring option,
-m: