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 ftp.your-server.si /public_html local/folder/*

Explanation:

  • -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.
  • ftp.your-server.si Address of the remote-host.
  • /public_html Remote directory.
  • local/folder/* Local folder (relative path in this case).