Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm transferring files from a FTP client to my ubuntu server using the terminal. I was able to upload a backup of some files that were already zipped but there are some files I need that are in a folder that can not be zipped or archived.

With NcFTP or other using another way, how can I transfer a folder of files (And sub-folders) without having to archived/zipped the folder? I am unable to do this because the files are on a shared hosting account for a game server and they're replying to slow while I'm asking them to archived it.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Well you don't say that there is strictly the need to use a command in the terminal in order to do the work so I guess what you wish is some terminal software which can handle ftp servers, such as a ftp client gui but for terminal purposes.

If I am right, I suggest you to give a chance to Midnight Commander. Inside of which you will be able to connect to a ftp server in order to put or get files the same as folders (with files recursively).

Certain ftp server commands are allowed, such as the chmod for changing the permissions of the files/folders and there is the help of a dual tree window in which you can handle the contents of both your local device and remote server.

Here is a screenshot to illustrate:

enter image description here

This screenshots are taken in a unity desktop (12.04) but the same screens you'll find in terminal mode. Here is a step by step process in order to connect to a ftp. (Mouse supported only in GUI)

First let's hit F9 in order to get in the PullDown Menu. Let's go to the "Left" menu and choose "FTP Link" as shown.

enter image description here

The machine name will be asked, let's write in this box using the next format:

user:[email protected]

This will send your username and password to the desired ftp server. If everything runs ok you'll be able to see the contents of your ftp server on the left side of the Midnight Commander windows.

enter image description here

If you succeeded, let's hit the TAB window in order to move the pointer to the right pane, in which you can choose which files/folders (with files) you wish to copy, move, delete, etc. You may wish to read the manual before using midnight commander but it is quite easy to use indeed.

Midnight commander is a powerful application that can be installed directly from the terminal using the next command:

sudo apt-get install mc

Good luck!

share|improve this answer
    
Would this work through putty? –  devs Feb 12 '13 at 0:08
    
Is it a different question? This will work for FTP in the majority of the terminal emulators, nevertheless PuTTY may be different. Please give it a try and inform us if it works and if needed please open a new question in order to receive the proper support about PuTTY. Thank you. –  Geppettvs D'Constanzo Feb 12 '13 at 0:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.