Recursive Upload to FTP

If you need to upload a folder recursively to FTP you can use ncftp:

# pacman -S ncftp

Then use the following command to upload a folder recursively:

$ ncftpput -R -v -u "ftp-user" -t 16000 /public_html local/folder/*


  • -R Recursive mode; copy whole directory trees.
  • -v Do use progress meters.
  • -u "ftp-user" Use username (ftp-user) instead of anonymous.
  • -t 16000 Timeout after 16000 seconds.
  • Address of the remote-host.
  • /public_html Remote directory.
  • local/folder/* Local folder (relative path in this case).