Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

dear all.. i need your help i'm new for using linux... i want to copy one folder to server.. i'm still confuse to use ftp mput... will you tell me step by step??

i want to copy foldet "dataTable-1.6" at /home/qa/html/dataTable-1.6 into html folder at server../www/html.. how to do that?

1> qa@qadesktop2:~$ ftp 10230.35.211
2> fill password
3> ftp>cd www/html
4> ftp>mput
   (local-files)/home/qa/html/dataTable-1.6/*
share|improve this question

closed as off-topic by Chris S Aug 8 at 17:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Chris S
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 3 down vote accepted

How you would normally copy all of the files in a folder to a remote location via FTP :

** First move to the local directory before starting the ftp client **

$ cd /home/qa/html/dataTable-1.6
$ ftp ftp.servername.com

** Login using loginname and password **

ftp> cd www/html
ftp> mput *

** mput will copy all files found at the current local directory matching the attributes (* will match all filenames, *.zip will only upload files ending with .zip) **

The standard FTP client does not support recursive copying (i.e. Folders within folders).

Check out lftp or ncfp. These are more featureful ftp clients, which support recursive transfers, syncing and a lot more.

share|improve this answer

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