Solved

Debian FTP

Posted on 2012-03-12
4
452 Views
Last Modified: 2012-08-14
If I have a lot of files I need to copy to a site from an ftp server, what is an easy way to use the get command and copy all at once?

Thanks
0
Comment
Question by:Jack_son_
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 400 total points
ID: 37712920
Are those files available through ftp?  You can use a good ftp client and copy everything together.  For command line Linux client, you will have to use mget command.  It is much better to use a good GUI ftp client, say, file zilla

A better approach would be to use rsync or scp that is based on ssh--a totally different mechanism.
0
 
LVL 6

Assisted Solution

by:torakeshb
torakeshb earned 100 total points
ID: 37713183
Use mget -      to copy multiple files from the remote machine to the local machine;
  you are prompted for a y/n answer before transferring each file


Use prompt - before mget command will not prompt you for y/n before transferring each file.

 Use mget *       copies all the files in the current remote directory to your current local directory.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 37714466
The problem with mget command is that you cannot copy recursively directories and sub-directories.  Second, you cannot preserve user ownership/permissions.  Third, you are limited to ftp files that are in ftp pub or other accessible locations.  Last, it is a slow and insecure protocol.
0
 

Author Closing Comment

by:Jack_son_
ID: 37726592
This worked great, thanks for the input.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now