copying whole directories CLI ftp client

This is a discussion on copying whole directories CLI ftp client within the Networking forums, part of the Help category; Hi I've tried lftp, ncftp and can't seem to find out how to get/put whole directories. I want to stick with cli ftp clients. Any suggestions thank you...

Go Back   Unix Linux Forum > Unix > Linux > Help > Networking

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-30-2008, 03:00 PM
Default copying whole directories CLI ftp client

Hi I've tried lftp, ncftp and can't seem to find out
how to get/put whole directories.
I want to stick with cli ftp clients.
Any suggestions


thank you
Reply With Quote
  #2  
Old 03-30-2008, 03:38 PM
Default Re: copying whole directories CLI ftp client

On Sun, 30 Mar 2008 19:00:55 +0000, xtd8865 wrote:

> Hi I've tried lftp, ncftp and can't seem to find out
> how to get/put whole directories.
> I want to stick with cli ftp clients.


ncftp

get -R blah-blah
put -R blah-blah
Reply With Quote
  #3  
Old 03-31-2008, 11:42 AM
Default Re: copying whole directories CLI ftp client

On Sun, 30 Mar 2008 14:38:42 -0500, Dave Uhring wrote:
> On Sun, 30 Mar 2008 19:00:55 +0000, xtd8865 wrote:
>
>> Hi I've tried lftp, ncftp and can't seem to find out
>> how to get/put whole directories.
>> I want to stick with cli ftp clients.

>
> ncftp
>
> get -R blah-blah
> put -R blah-blah


sftp: put * / get *

Jonesy
Reply With Quote
  #4  
Old 04-03-2008, 07:24 AM
Default Re: copying whole directories CLI ftp client

xtd8865 wrote:
> Hi I've tried lftp, ncftp and can't seem to find out
> how to get/put whole directories.
> I want to stick with cli ftp clients.
> Any suggestions
>
>
> thank you


With LFTP, trying using the 'mirror' command instead of 'get'
Reply With Quote
  #5  
Old 04-03-2008, 01:06 PM
Default Re: copying whole directories CLI ftp client


>> Hi I've tried lftp, ncftp and can't seem to find out
>> how to get/put whole directories.
>> I want to stick with cli ftp clients.
>> Any suggestions


Not sure what the final goal is, but a lot of people don't
know that most FTP servers will automatically create a tar
file for you of a directory, .e.g. On windows xp I can open
a command prompt, use their command line ftp to login to
our RHEL 4 server, switch to binary transfer and then
type: get junk_dir.tar -- it will download a single tar
file to you containing the contents of junk_dir on the server.

Hope this helps. There may be a way to 'reverse' the
process, but I don't know the command.
--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Reply With Quote
  #6  
Old 04-04-2008, 09:05 AM
Default Re: copying whole directories CLI ftp client

John Murtari wrote:

> Not sure what the final goal is, but a lot of people don't
> know that most FTP servers will automatically create a tar
> file for you of a directory, .e.g. On windows xp I can open
> a command prompt, use their command line ftp to login to
> our RHEL 4 server, switch to binary transfer and then
> type: get junk_dir.tar -- it will download a single tar
> file to you containing the contents of junk_dir on the server.
>
> Hope this helps. There may be a way to 'reverse' the
> process, but I don't know the command.


Didn't know that, but also, did not get it to work.
Tried it on ProFTPD, PureFTP and FTPD. (not my installs, but servers I
have FTP logins on, so it's either turned off or unsupported).
Reply With Quote
  #7  
Old 08-21-2008, 07:01 PM
Default Re: copying whole directories CLI ftp client

xtd8865 wrote:
> Hi I've tried lftp, ncftp and can't seem to find out
> how to get/put whole directories.


ncftp usually brings ncftpget and ncftpput along. see the man page for
-R.

Cheers
Reply With Quote
  #8  
Old 08-24-2008, 05:56 PM
Default Re: copying whole directories CLI ftp client

On 2008-08-21, harry.potter@fredastaire.ch wrote:

> xtd8865 wrote:
>> Hi I've tried lftp, ncftp and can't seem to find out
>> how to get/put whole directories.

>
> ncftp usually brings ncftpget and ncftpput along. see the man page for
> -R.


ALternatively, use mc.


--
Hanlon's Razor:
Never attribute to malice that which is
adequately explained by stupidity.
Reply With Quote
  #9  
Old 08-24-2008, 07:16 PM
Default Re: copying whole directories CLI ftp client

On Fri, 22 Aug 2008 01:01:30 +0200, harry.potter@fredastaire.ch wrote:
>xtd8865 wrote:
>> Hi I've tried lftp, ncftp and can't seem to find out
>> how to get/put whole directories.


>ncftp usually brings ncftpget and ncftpput along. see the man page for
>-R.


I simply tar up the directory.
Rsync does a reasonable job as well.
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 05:57 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger