Solved

Debian FTP

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.

762 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

19 Experts available now in Live!

Get 1:1 Help Now