LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-01-2006, 11:01 AM   #1
rolster
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
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.
 
Old 02-01-2006, 11:30 AM   #2
tizzef
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: Reputation: 20
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
 
Old 02-01-2006, 05:02 PM   #3
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
if you want a gui option ~> i like gftp
 
Old 02-01-2006, 05:11 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 02-01-2006, 10:12 PM   #5
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
lftp's mirror command would do the job perfectly.
 
Old 02-02-2006, 09:08 AM   #6
rolster
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 02-02-2006, 09:54 AM   #7
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving certain files recursively preservice folder structure DigiTalk Linux - Newbie 11 09-08-2005 09:04 AM
FTP Software.. what will transfer an entire directory? trey85stang Linux - Software 3 06-19-2005 09:33 AM
Recursively listing files over FTP? overbored Linux - Software 4 10-14-2004 01:12 PM
How to get an entire folder trough ftp with one command. amnesiac Linux - Software 3 08-31-2003 04:24 PM
Can I make a Cron job to synch/transfer a file from a folder to another FTP?... read efishta Linux - General 6 07-19-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration