Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-01-2006, 11:01 AM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 2
Rep:
|
FTP need to transfer entire folder recursively
Hello, I am trying to use ftp to transfer the entire contents of a folder, and recursively transfer any folders within it.
Does anyone have any expertise on this? thank you.
|
|
|
02-01-2006, 11:30 AM
|
#2
|
Member
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119
Rep:
|
Hi there
You may have several way to do this.
Your transfert is between to Linux box or not ??
If it is, U can use a <tar> command to make an archive and get it with ftp.
You can use <pax> which can transfert file between two host.
You can use rsync to synchro two hosts.
Hope it's helps
Cheers
|
|
|
02-01-2006, 05:02 PM
|
#3
|
Member
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451
Rep:
|
if you want a gui option ~> i like gftp
|
|
|
02-01-2006, 05:11 PM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
At the most basic level, I believe that ftp will not do that. You DO have mput and mget for moving multiple files. eg to upload a folderful, simply type "mput *"
For download, I am on shaky ground--I have found that wild cards often don't work at the target end--thus I don't know how to take advantage of --eg--mget.
|
|
|
02-01-2006, 10:12 PM
|
#5
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
lftp's mirror command would do the job perfectly.
|
|
|
02-02-2006, 09:08 AM
|
#6
|
LQ Newbie
Registered: Feb 2006
Posts: 2
Original Poster
Rep:
|
FTP transfer
I appreciate all your responses. This is from linux to linux, and needs to run in middle of night from cron. Do you have more information on the ftp-mirror command? thanks
|
|
|
02-02-2006, 09:54 AM
|
#7
|
Member
Registered: Jan 2005
Posts: 178
Rep:
|
Oh, lftp needs human interaction, not suitable for cronjob. You may use wget instead, which also has a "-mirror" option for ftp directory mirroring.
To correct myself: lftp can be ran non-interactively:
lftp -c mirror ftp://host/path/to/dir-to-be-mirrored
Last edited by T.Hsu; 02-02-2006 at 10:13 AM.
|
|
|
All times are GMT -5. The time now is 11:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|