Upload via FTP an entire folder using DOS

I need to upload a folder (~300MB) that contains files from a framework (magento) to the cloud server where my application is. The server GUI only allows you to upload files individually and the creation of folders has to be manual one by one. To get around this huge rework, I enabled FTP on the server, downloaded a renowned and free FTP management software, connected to the server and started uploading the files there. It worked out in parts, it turns out that the speed to upload is so low that in 3 hours of upload were transferred 4MB, until the connection was interrupted by time-out.

As another alternative, I am trying to up via ftp from MSDOS, but I admit to being ignorant in DOS and did not find the right command, only commands that copy files one by one manually. I would have to find a command that would copy a folder and all its contents, does anyone know what it is? Or some other way for me to send these files?

Grateful right now!

Author: Laércio Lopes, 2018-01-08

1 answers

Using the Windows native command ftp you can only send files, if the folder you want to send contains subfolders, these folders will not be sent.

To copy multiple files from a single directory simply use the following command:

mput *

If you want to send a folder containing subfolders I recommend using NcFTP , you can download the installer for Windows from this link.

Commands are very similar to Windows ftp, to connect use the following command:

ncftp -u seuUsuario -p suaSenha ftp.seusite.com.br

To transfer files and folders, use the command:

mput -r suaPasta
 1
Author: Laércio Lopes, 2018-01-08 20:24:51