Solved

Debian FTP

Posted on 2012-03-12
4
456 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 7

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

732 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