Networking Forums

Networking Forums > Computer Networking > Linux Networking > copying whole directories CLI ftp client

Reply
Thread Tools Display Modes

copying whole directories CLI ftp client

 
 
xtd8865
Guest
Posts: n/a

 
      03-30-2008, 07:00 PM
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
 
 
 
 
Dave Uhring
Guest
Posts: n/a

 
      03-30-2008, 07:38 PM
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
 
Bill Marcum
Guest
Posts: n/a

 
      03-31-2008, 01:54 AM
On 2008-03-30, xtd8865 <(E-Mail Removed)> 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
>

wget is a client for ftp or http.

 
Reply With Quote
 
Allodoxaphobia
Guest
Posts: n/a

 
      03-31-2008, 03:42 PM
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
 
goarilla
Guest
Posts: n/a

 
      04-02-2008, 12:32 PM
Bill Marcum wrote:
> On 2008-03-30, xtd8865 <(E-Mail Removed)> 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
>>

> wget is a client for ftp or http.
>

not really
wget (web get) understands ftp and http
but it isn't a true ftp client (can you PUT files with wget ?)
 
Reply With Quote
 
Jurgen Haan
Guest
Posts: n/a

 
      04-03-2008, 11:24 AM
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
 
John Murtari
Guest
Posts: n/a

 
      04-03-2008, 05:06 PM

>> 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
 
Jurgen Haan
Guest
Posts: n/a

 
      04-04-2008, 01:05 PM
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
 
Bill Marcum
Guest
Posts: n/a

 
      04-04-2008, 05:27 PM
On 2008-04-04, Jurgen Haan <(E-Mail Removed)> wrote:
>
>
> 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).


It might be that if the ftp server runs chrooted, it need to see a
"/bin/tar".
 
Reply With Quote
 
harry.potter@fredastaire.ch
Guest
Posts: n/a

 
      08-21-2008, 11:01 PM
xtd8865 <(E-Mail Removed)> 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
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS virtual directories danflip Windows Networking 0 06-05-2007 11:01 PM
map some directories to one letter ads Windows Networking 1 04-11-2007 03:23 PM
Empty NFS-exported directories jon@figsandfudge.com Linux Networking 3 01-18-2007 07:58 AM
home directories roshak31 Windows Networking 2 11-06-2006 01:34 AM
Online hotspot directories dsmcd Wireless Internet 1 11-24-2003 12:49 AM



1 2 3 4 5 6 7 8 9 10 11