Wednesday, February 22, 2017

Transfer folder contents via FTP without prompting

If you need to transfer multiple files via ftp from a folder, as folder transfer per se is not supported, go into local folder, connect to ftp server and use mput to place multiple files. The problem with this option is that you would be prompted to confirm each file, that may be a problem for large folders. Thus, to avoid this connect to ftp with -i option.

Miloss-MacBook-Air:~ cd local_folder
Miloss-MacBook-Air:~ milospjanic$ ftp -i
Connected to
220 (vsFTPd 2.2.2)
Name ( username
331 Please specify the password.
Password: password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> mput *

No comments:

Post a Comment