How to FTP all files and folders (nested)
Do you ever find that there is a need to do a bulk transfer of the entire folder with FTP/FTPS, which also contain many child folders?
I’ve recently faced with this challenge. There are several options, depending on your systems:
- Use a windows based FTP tools (windows, linux or mac)
- This means you must have access to a GUI based OS and windows based FTP tool installed on the destination and FTP enabled on the source, or
- Have GUI based OS and windows based FTP tool installed on the source and FTP enabled on the destination
- compress or tar the entire folder and transfer as a single file
- command line that allows transfer of nested files and folders
I have recently faced with this issue, on a source that has no SSH access, and destination that has no out of the box windows based FTP client and I’m reluctant to install one.
To achieve that, I have used a tool called ncftpput
.
To install it
sudo apt -y update
sudo apt -y install ncftp
Then to perform the files transfer file FTP/FTPS
ncftpput -R -v -u <username> <ftp_host> <source_folder> <destination>