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
Solved

Debian FTP

Posted on 2012-03-12
4
454 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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