Upload an entire folder via FTP using DOS

Asked

Viewed 2,811 times

0

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 in parts, it turns out that the speed for upar is so low that in 3 hours of upload were transferred 4MB, until the connection was interrupted by time-out.

As an alternative, I’m trying to uple via MSDOS ftp, but I admit I’m ignorant in DOS and I couldn’t find the right command, just commands that copy files one by one manually. Would you have to find a command that copies a folder and all its contents, does anyone know what it is? Or some other way for me to send these files?

Grateful from now on!

1 answer

1


Using the command ftp native to Windows it is only possible to send files, if the folder you want to send contains sub-folders, these folders will not be sent.

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

mput *

If you want to send a folder that contains subfolders recommend using the Ncftp, can download the installer for Windows on this link.

The 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.